Browse Source

【fix】【标记密文】添加涂白区域,左边和下面没有涂白,会有一丢丢边露出来

tangchao 5 months ago
parent
commit
1b9fe3883b

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFListViewExtension/CPDFListView+Event.m

@@ -2301,7 +2301,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
     CPDFRedactAnnotation *annotation = [[CPDFRedactAnnotation alloc] initWithPDFListViewNoteWith:self.document];
     for (CPDFSelection *selection in currentSelection.selectionsByLine) {
         CGRect bounds = selection.bounds;
-        CGRect theBounds = CGRectInset(bounds, -2, -2);
+        CGRect theBounds = CGRectInset(bounds, -2, -3);
         [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))]];