|
@@ -2294,10 +2294,11 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
CPDFRedactAnnotation *annotation = [[CPDFRedactAnnotation alloc] initWithPDFListViewNoteWith:self.document];
|
|
|
for (CPDFSelection *selection in currentSelection.selectionsByLine) {
|
|
|
CGRect bounds = selection.bounds;
|
|
|
- [quadrilateralPoints addObject:[NSValue valueWithPoint:CGPointMake(CGRectGetMinX(bounds), CGRectGetMaxY(bounds))]];
|
|
|
- [quadrilateralPoints addObject:[NSValue valueWithPoint:CGPointMake(CGRectGetMaxX(bounds), CGRectGetMaxY(bounds))]];
|
|
|
- [quadrilateralPoints addObject:[NSValue valueWithPoint:CGPointMake(CGRectGetMinX(bounds), CGRectGetMinY(bounds))]];
|
|
|
- [quadrilateralPoints addObject:[NSValue valueWithPoint:CGPointMake(CGRectGetMaxX(bounds), CGRectGetMinY(bounds))]];
|
|
|
+ CGRect theBounds = CGRectInset(bounds, -2, -2);
|
|
|
+ [quadrilateralPoints addObject:[NSValue valueWithPoint:CGPointMake(CGRectGetMinX(theBounds), CGRectGetMaxY(theBounds))]];
|
|
|
+ [quadrilateralPoints addObject:[NSValue valueWithPoint:CGPointMake(CGRectGetMaxX(theBounds), CGRectGetMaxY(theBounds))]];
|
|
|
+ [quadrilateralPoints addObject:[NSValue valueWithPoint:CGPointMake(CGRectGetMinX(theBounds), CGRectGetMinY(theBounds))]];
|
|
|
+ [quadrilateralPoints addObject:[NSValue valueWithPoint:CGPointMake(CGRectGetMaxX(theBounds), CGRectGetMinY(theBounds))]];
|
|
|
}
|
|
|
[annotation setModificationDate:[NSDate date]];
|
|
|
[annotation setQuadrilateralPoints:quadrilateralPoints];
|