Revision: 2538
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2538&view=rev
Author:   hofman
Date:     2007-07-19 16:25:01 -0700 (Thu, 19 Jul 2007)

Log Message:
-----------
Use correct value for scale factor of reopened snapshots.

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2007-07-19 20:11:41 UTC (rev 2537)
+++ trunk/SKMainWindowController.m      2007-07-19 23:25:01 UTC (rev 2538)
@@ -361,7 +361,7 @@
         NSEnumerator *setupEnum = [[[SKBookmarkController 
sharedBookmarkController] snapshotsAtPath:[[[self document] fileURL] path]] 
objectEnumerator];
         NSDictionary *setup;
         if (setup = [setupEnum nextObject])
-            [self showSnapshotAtPageNumber:[[setup objectForKey:@"page"] 
unsignedIntValue] forRect:NSRectFromString([setup objectForKey:@"rect"]) 
factor:[[setup objectForKey:@"page"] floatValue] display:[[setup 
objectForKey:@"hasWindow"] boolValue]];
+            [self showSnapshotAtPageNumber:[[setup objectForKey:@"page"] 
unsignedIntValue] forRect:NSRectFromString([setup objectForKey:@"rect"]) 
factor:[[setup objectForKey:@"scaleFactor"] floatValue] display:[[setup 
objectForKey:@"hasWindow"] boolValue]];
     }
     
     // This update toolbar item and other states
@@ -770,7 +770,7 @@
         NSEnumerator *setupEnum = [snapshotDicts objectEnumerator];
         NSDictionary *setup;
         while (setup = [setupEnum nextObject])
-            [self showSnapshotAtPageNumber:[[setup objectForKey:@"page"] 
unsignedIntValue] forRect:NSRectFromString([setup objectForKey:@"rect"]) 
factor:[[setup objectForKey:@"page"] floatValue] display:[[setup 
objectForKey:@"hasWindow"] boolValue]];
+            [self showSnapshotAtPageNumber:[[setup objectForKey:@"page"] 
unsignedIntValue] forRect:NSRectFromString([setup objectForKey:@"rect"]) 
factor:[[setup objectForKey:@"scaleFactor"] floatValue] display:[[setup 
objectForKey:@"hasWindow"] boolValue]];
         
         if (pageIndex != NSNotFound && [document pageCount]) {
             PDFPage *page = [document pageAtIndex:MIN(pageIndex, [document 
pageCount] - 1)];


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to