Revision: 15281
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15281&view=rev
Author: hofman
Date: 2009-05-07 10:01:49 +0000 (Thu, 07 May 2009)
Log Message:
-----------
Don't try to create icon image when creating the attributed string for a text
icon fails
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVTextIcon.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVTextIcon.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVTextIcon.m 2009-05-07
09:36:38 UTC (rev 15280)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVTextIcon.m 2009-05-07
10:01:49 UTC (rev 15281)
@@ -508,9 +508,14 @@
}
CGImageRelease(_fullImage);
- _fullImage = [self _newImageWithAttributedString:attrString
documentAttributes:documentAttributes];
- [attrString release];
-
+ if (attrString) {
+ _fullImage = [self _newImageWithAttributedString:attrString
documentAttributes:documentAttributes];
+ [attrString release];
+ }
+ else {
+ _fullImage = NULL;
+ }
+
if (NULL != _fullImage) {
// reset size while we have the lock, since it may be different now
that we've read the string
_fullSize = FVCGImageSize(_fullImage);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit