Revision: 3778
http://skim-app.svn.sourceforge.net/skim-app/?rev=3778&view=rev
Author: hofman
Date: 2008-04-20 10:40:12 -0700 (Sun, 20 Apr 2008)
Log Message:
-----------
Simply delete characters when setting nil text.
Modified Paths:
--------------
trunk/SKPDFAnnotationNote.m
Modified: trunk/SKPDFAnnotationNote.m
===================================================================
--- trunk/SKPDFAnnotationNote.m 2008-04-20 17:33:08 UTC (rev 3777)
+++ trunk/SKPDFAnnotationNote.m 2008-04-20 17:40:12 UTC (rev 3778)
@@ -203,7 +203,10 @@
- (void)setText:(NSAttributedString *)newText;
{
if (textStorage != newText) {
- [textStorage replaceCharactersInRange:NSMakeRange(0, [textStorage
length]) withAttributedString:newText ? newText : [[[NSAttributedString alloc]
init] autorelease]];
+ if (newText)
+ [textStorage replaceCharactersInRange:NSMakeRange(0, [textStorage
length]) withAttributedString:newText];
+ else
+ [textStorage deleteCharactersInRange:NSMakeRange(0, [textStorage
length])]
}
}
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