Revision: 4852
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4852&view=rev
Author:   hofman
Date:     2008-10-23 09:10:57 +0000 (Thu, 23 Oct 2008)

Log Message:
-----------
check for class of page when building selection

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

Modified: trunk/PDFSelection_SKExtensions.m
===================================================================
--- trunk/PDFSelection_SKExtensions.m   2008-10-22 22:32:23 UTC (rev 4851)
+++ trunk/PDFSelection_SKExtensions.m   2008-10-23 09:10:57 UTC (rev 4852)
@@ -362,7 +362,7 @@
         
         while (dict = [dictEnum nextObject]) {
             PDFPage *page = [dict objectForKey:@"page"];
-            if ((aPage && [aPage isEqual:page] == NO) || (doc && [doc 
isEqual:[page document]] == NO))
+            if ([page isKindOfClass:[PDFPage class]] == NO || (aPage && [aPage 
isEqual:page] == NO) || (doc && [doc isEqual:[page document]] == NO))
                 continue;
             
             NSArray *ranges = [dict objectForKey:@"ranges"];


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to