瀏覽代碼

【fix】【注释】隐藏注释,页面上仍然显示高亮 和 Fill&Form 物件注释(其他注释正常)

tangchao 7 月之前
父節點
當前提交
89de5df214

+ 6 - 0
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFAnnotationExtensions/SelfSign/CSelfSignAnnotation.m

@@ -110,6 +110,12 @@
 }
 
 - (void)drawWithBox:(CPDFDisplayBox)box inContext:(CGContextRef)context {
+    BOOL annotationShouldDisplay = self.annotationShouldDisplay;
+    BOOL shouldDisplay = self.shouldDisplay;
+    if (annotationShouldDisplay == false || shouldDisplay == false) {
+        return;
+    }
+    
     NSColor*pathColor = self.lineColor;
     CGFloat red,green,blue,alpha;
     [[pathColor colorUsingColorSpaceName:NSCalibratedRGBColorSpace] getRed:&red green:&green blue:&blue alpha:&alpha];