Revision: 3777
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3777&view=rev
Author:   hofman
Date:     2008-04-20 10:33:08 -0700 (Sun, 20 Apr 2008)

Log Message:
-----------
make sure we don't replace characters in the text storage by nil, as binding 
can return nil.

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

Modified: trunk/SKPDFAnnotationNote.m
===================================================================
--- trunk/SKPDFAnnotationNote.m 2008-04-20 17:08:49 UTC (rev 3776)
+++ trunk/SKPDFAnnotationNote.m 2008-04-20 17:33:08 UTC (rev 3777)
@@ -203,7 +203,7 @@
 - (void)setText:(NSAttributedString *)newText;
 {
     if (textStorage != newText) {
-        [textStorage replaceCharactersInRange:NSMakeRange(0, [textStorage 
length]) withAttributedString:newText];
+        [textStorage replaceCharactersInRange:NSMakeRange(0, [textStorage 
length]) withAttributedString:newText ? newText : [[[NSAttributedString alloc] 
init] autorelease]];
     }
 }
 


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 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to