Revision: 3635
http://skim-app.svn.sourceforge.net/skim-app/?rev=3635&view=rev
Author: hofman
Date: 2008-04-05 05:49:06 -0700 (Sat, 05 Apr 2008)
Log Message:
-----------
Make sure we have set the lineRects before using them.
Modified Paths:
--------------
trunk/SKPDFAnnotationMarkup.m
Modified: trunk/SKPDFAnnotationMarkup.m
===================================================================
--- trunk/SKPDFAnnotationMarkup.m 2008-04-05 12:37:00 UTC (rev 3634)
+++ trunk/SKPDFAnnotationMarkup.m 2008-04-05 12:49:06 UTC (rev 3635)
@@ -253,7 +253,7 @@
self = nil;
} else {
[self setBounds:newBounds];
- iMax = CFArrayGetCount(lineRects);
+ iMax = lineRects == NULL ? 0 : CFArrayGetCount(lineRects);
for (i = 0; i < iMax; i++) {
NSArray *quadLine = createQuadPointsWithBounds(*(NSRect
*)CFArrayGetValueAtIndex(lineRects, i), [self bounds].origin);
[quadPoints addObjectsFromArray:quadLine];
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
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
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