Revision: 5215
http://skim-app.svn.sourceforge.net/skim-app/?rev=5215&view=rev
Author: hofman
Date: 2009-02-24 15:53:26 +0000 (Tue, 24 Feb 2009)
Log Message:
-----------
default index to last index rather than count
Modified Paths:
--------------
trunk/PDFSelection_SKExtensions.m
Modified: trunk/PDFSelection_SKExtensions.m
===================================================================
--- trunk/PDFSelection_SKExtensions.m 2009-02-14 20:50:16 UTC (rev 5214)
+++ trunk/PDFSelection_SKExtensions.m 2009-02-24 15:53:26 UTC (rev 5215)
@@ -208,7 +208,7 @@
indices = [endSpec
indicesOfObjectsByEvaluatingWithContainer:textStorage count:&count];
endIndex = count ? indices[count - 1] : -1;
} else {
- endIndex = [[textStorage valueForKey:key] count];
+ endIndex = [[textStorage valueForKey:key] count] -
1;
}
if (startIndex >= 0 && endIndex >= 0) {
NSRange range = NSMakeRange(MIN(startIndex,
endIndex), MAX(startIndex, endIndex) + 1 - MIN(startIndex, endIndex));
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit