Revision: 7262
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7262&view=rev
Author:   hofman
Date:     2011-06-07 18:17:43 +0000 (Tue, 07 Jun 2011)

Log Message:
-----------
also explicitly go to page 1 when the fragment says so, as it may override some 
default

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

Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m        2011-06-07 18:05:50 UTC (rev 7261)
+++ trunk/SKDocumentController.m        2011-06-07 18:17:43 UTC (rev 7262)
@@ -393,7 +393,7 @@
     
     if ([document isPDFDocument] && [fragment length] > 5 && [fragment 
compare:@"page=" options:NSAnchoredSearch | NSCaseInsensitiveSearch 
range:NSMakeRange(0, 5)] == NSOrderedSame) {
         NSInteger page = [[fragment substringFromIndex:5] integerValue];
-        if (page > 1)
+        if (page > 0)
             [[document mainWindowController] setPageNumber:page];
     }
     


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

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to