Revision: 5536
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5536&view=rev
Author:   hofman
Date:     2009-08-11 17:51:45 +0000 (Tue, 11 Aug 2009)

Log Message:
-----------
update markup note bounds in fallback code

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

Modified: trunk/PDFAnnotationMarkup_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationMarkup_SKExtensions.m    2009-08-11 17:23:02 UTC (rev 
5535)
+++ trunk/PDFAnnotationMarkup_SKExtensions.m    2009-08-11 17:51:45 UTC (rev 
5536)
@@ -247,8 +247,10 @@
                 PDFSelection *sel;
                 while (sel = [selEnum nextObject]) {
                     lineRect = [sel boundsForPage:page];
-                    if (NSIsEmptyRect(lineRect) == NO && [[sel string] 
rangeOfCharacterFromSet:[NSCharacterSet 
nonWhitespaceAndNewlineCharacterSet]].length)
+                    if (NSIsEmptyRect(lineRect) == NO && [[sel string] 
rangeOfCharacterFromSet:[NSCharacterSet 
nonWhitespaceAndNewlineCharacterSet]].length) {
                          CFArrayAppendValue([self lineRects], &lineRect);
+                         newBounds = NSUnionRect(lineRect, newBounds);
+                    }
                 } 
             }
             if (NSIsEmptyRect(newBounds)) {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to