Selaa lähdekoodia

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

lizhe 9 kuukautta sitten
vanhempi
commit
6d01efc5b7

+ 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?) {
     @objc func deleteAnnotation(_ sender: NSMenuItem?) {
         if let annotation = sender?.representedObject as? CPDFRedactAnnotation {
         if let annotation = sender?.representedObject as? CPDFRedactAnnotation {
-            removeAnnotation(annotation: annotation)
+            self.remove(annotation)
+//            removeAnnotation(annotation: annotation)
         }
         }
     }
     }