Revision: 12940
          http://sourceforge.net/p/skim-app/code/12940
Author:   hofman
Date:     2022-06-24 14:28:46 +0000 (Fri, 24 Jun 2022)
Log Message:
-----------
set ivars directly in init

Modified Paths:
--------------
    trunk/SKReadingBar.m

Modified: trunk/SKReadingBar.m
===================================================================
--- trunk/SKReadingBar.m        2022-06-24 13:52:05 UTC (rev 12939)
+++ trunk/SKReadingBar.m        2022-06-24 14:28:46 UTC (rev 12940)
@@ -55,9 +55,10 @@
     self = [super init];
     if (self) {
         numberOfLines = MAX(1, [[NSUserDefaults standardUserDefaults] 
integerForKey:SKReadingBarNumberOfLinesKey]);
-        lineRects = nil;
+        page = [aPage retain];
+        lineRects = [[page lineRects] retain];
         currentLine = -1;
-        [self setPage:aPage];
+        currentBounds = NSZeroRect;
     }
     return self;
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to