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

Log Message:
-----------
now that we're parsing selection specifiers generically, we should check what 
we get

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

Modified: trunk/PDFSelection_SKExtensions.m
===================================================================
--- trunk/PDFSelection_SKExtensions.m   2008-10-23 09:32:02 UTC (rev 4853)
+++ trunk/PDFSelection_SKExtensions.m   2008-10-23 09:34:19 UTC (rev 4854)
@@ -315,6 +315,8 @@
         
         while (container = [containerEnum nextObject]) {
             NSTextStorage *containerText = [container valueForKey:key];
+            if ([containerText isKindOfClass:[NSTextStorage class]] == NO || 
[containerText length] == 0)
+                continue;
             NSArray *rangeValues = [[NSArray alloc] initWithObjects:[NSValue 
valueWithRange:NSMakeRange(0, [containerText length])], nil];
             NSMutableDictionary *dict = [[NSMutableDictionary alloc] 
initWithObjectsAndKeys:rangeValues, @"ranges", containerText, @"text", 
container, @"container", nil];
             [rangeDicts addObject:dict];


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