Ver Fonte

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

chenyu há 1 ano atrás
pai
commit
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];
 }