Revision: 2331
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2331&view=rev
Author:   hofman
Date:     2007-06-17 14:02:55 -0700 (Sun, 17 Jun 2007)

Log Message:
-----------
Avoid adding a selection to itself, as this does not work due to a PDFKit bug 
(I get really tired of it). 

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

Modified: trunk/PDFSelection_SKExtensions.m
===================================================================
--- trunk/PDFSelection_SKExtensions.m   2007-06-17 20:23:11 UTC (rev 2330)
+++ trunk/PDFSelection_SKExtensions.m   2007-06-17 21:02:55 UTC (rev 2331)
@@ -337,7 +337,7 @@
     
     if (selection == nil)
         selection = otherSelection;
-    if (otherSelection)
+    else if (otherSelection)
         [selection addSelection:otherSelection];
     
     if (continuous) {
@@ -348,7 +348,7 @@
         int lastIndex = NSMaxRange([selection safeRangeAtIndex:[selection 
safeNumberOfRangesOnPage:lastPage] - 1 onPage:lastPage]) - 1;
         selection = [[firstPage document] selectionFromPage:firstPage 
atCharacterIndex:firstIndex toPage:lastPage atCharacterIndex:lastIndex];
     }
-    
+    NSLog(@"%@",selection);
     return selection ? [selection objectSpecifier] : [NSArray array];
 }
 


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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to