Browse Source

【综合】
1、自定义图章界面禁止右键操作
2、新增图章默认选中注释

niehaoyu 8 months ago
parent
commit
813db58af7

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

@@ -488,6 +488,9 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
     if (self.annotationType == CAnnotationTypeInk || self.annotationType == CAnnotationTypeEraser) {
         return nil;
     }
+    if ([self.isCustomStampType isEqualToString: @"1"]) {
+        return nil;
+    }
     if([self.activeAnnotations count] > 1) {
         NSMenu *menu = [[NSMenu alloc] init];
         
@@ -2639,7 +2642,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
 //            [self updateActiveAnnotations:@[annotation]];
 //            [self setNeedsDisplayAnnotation:annotation];
 //        } else if(self.activeAnnotations.count >0) {
-            [self updateActiveAnnotations:@[]];
+            [self updateActiveAnnotations:@[annotation]];
             [self setNeedsDisplayAnnotationViewForPage:page];
 //        }
         if (!self.isStampModel) {