瀏覽代碼

PDFTools(iOS) - 注释为空的时候不能remove

chenyu 1 年之前
父節點
當前提交
b439a545a4

+ 1 - 0
compdfkit-tools/compdfkit-tools/Common/Views/PDFView/PDFListView/CPDFListView+UndoManager.m

@@ -77,6 +77,7 @@ static NSString *CPDFAnnotationPropertiesObservationContext = @"CPDFAnnotationPr
         [self updateActiveAnnotations:@[]];
     
     [self setNeedsDisplayForPage:page];
+    if(self.activeAnnotations.count > 0)
     [page removeAnnotation:annotation];
 }