Browse Source

【fix】 【BOTA】给文档加注释,在缩略图列表中删除该页,撤销,页面恢复了,但注释未恢复

tangchao 6 months ago
parent
commit
ab1f008760

+ 3 - 3
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift

@@ -1526,9 +1526,9 @@ extension KMLeftSideViewController: NSTableViewDelegate, NSTableViewDataSource {
             }
             for idx in rowIndexes {
                 if let page = self.pdfDocument()?.page(at: UInt(idx)) {
-                    for anno in page.annotations {
-                        page.removeAnnotation(anno)
-                    }
+//                    for anno in page.annotations {
+//                        page.removeAnnotation(anno)
+//                    }
                     (self.listView?.undoManager?.prepare(withInvocationTarget: self) as AnyObject).insertPage(page, pageAt:  idx)
 //                    self.pdfDocument()?.removePage(at: IndexSet(integer: idx))
                 }