Revision: 2673
http://skim-app.svn.sourceforge.net/skim-app/?rev=2673&view=rev
Author: hofman
Date: 2007-08-16 12:55:35 -0700 (Thu, 16 Aug 2007)
Log Message:
-----------
Use 1px outset for the line rects to build the selection for a highlight, to
avoid rounding errors.
Modified Paths:
--------------
trunk/SKPDFAnnotationNote.m
Modified: trunk/SKPDFAnnotationNote.m
===================================================================
--- trunk/SKPDFAnnotationNote.m 2007-08-16 19:44:24 UTC (rev 2672)
+++ trunk/SKPDFAnnotationNote.m 2007-08-16 19:55:35 UTC (rev 2673)
@@ -943,7 +943,8 @@
unsigned i;
for (i = 0; i < numberOfLines; i++) {
- if (sel = [[self page] selectionForRect:lineRects[i]]) {
+ // slightly outset the rect to avoid rounding errors, as
selectionForRect is pretty strict
+ if (sel = [[self page] selectionForRect:NSInsetRect(lineRects[i],
-1.0, -1.0)]) {
if (selection == nil)
selection = sel;
else
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit