Explorar o código

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

chenyu hai 1 ano
pai
achega
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];
 }