Pārlūkot izejas kodu

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

chenyu 1 gadu atpakaļ
vecāks
revīzija
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];
 }