Bladeren bron

【标记密文】添加密文-删除后,点击undo,删除的密文没有恢复,应该会恢复才对

lizhe 9 maanden geleden
bovenliggende
commit
6d01efc5b7
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      PDF Office/PDF Master/Class/PDFTools/Redact/View/KMRedactPDFView.swift

+ 2 - 1
PDF Office/PDF Master/Class/PDFTools/Redact/View/KMRedactPDFView.swift

@@ -125,7 +125,8 @@ private let KMPDFViewRedactAnnotationAcross = "KMPDFViewRedactAnnotationAcross"
     
     @objc func deleteAnnotation(_ sender: NSMenuItem?) {
         if let annotation = sender?.representedObject as? CPDFRedactAnnotation {
-            removeAnnotation(annotation: annotation)
+            self.remove(annotation)
+//            removeAnnotation(annotation: annotation)
         }
     }