Browse Source

【注释】点击页面上已添加的便签注释,点击便签面板的删除按钮无效修复

lizhe 1 year ago
parent
commit
4b5d10c4a5

+ 2 - 2
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFListView.m

@@ -811,7 +811,7 @@ NSNotificationName const CPDFListViewAnnotationsAttributeHasChangeNotification =
 
 - (void)removeAnnotation:(CPDFAnnotation *)annotation {
     if ([annotation isKindOfClass:[CPDFTextAnnotation class]] && self.popOver.isShown) {
-        if (annotation.contents.length <= 0) {
+//        if (annotation.contents.length <= 0) {
             CPDFAnnotation *wasAnnotation = annotation;
             CPDFPage *page = wasAnnotation.page;
             
@@ -828,7 +828,7 @@ NSNotificationName const CPDFListViewAnnotationsAttributeHasChangeNotification =
             
             if([self.pdfListViewDelegate respondsToSelector:@selector(PDFListViewRemoveAnnotations:forRemoveAnnotations:inPage:)])
                 [self.pdfListViewDelegate PDFListViewRemoveAnnotations:self forRemoveAnnotations:@[annotation] inPage:page];
-        }
+//        }
     } else {
         CPDFAnnotation *wasAnnotation = annotation;
         CPDFPage *page = wasAnnotation.page;