Closed GoogleCodeExporter closed 8 years ago
Sorry the method that follows is: NSRange CPTExpandedRange(NSRange range,
NSInteger expandBy)
This is the full source for the method, WITH THE FIX INCLUDED:
NSRange CPTExpandedRange(NSRange range, NSInteger expandBy)
{
NSUInteger loc = (NSUInteger)MAX(0, (NSInteger)range.location - expandBy);
NSUInteger lowerExpansion = range.location - loc;
NSUInteger length = (NSUInteger)( (NSInteger)(range.length + lowerExpansion) + expandBy );
return NSMakeRange(loc, length);
}
Original comment by robmroc...@gmail.com
on 1 Feb 2013 at 5:17
Related to issue 502. Already fixed.
Original comment by eskr...@mac.com
on 1 Feb 2013 at 6:58
Original issue reported on code.google.com by
robmroc...@gmail.com
on 1 Feb 2013 at 5:12