Browse Source

【BOTA】给文档加注释并选中,在缩略图列表中删除该页,必现崩溃 -- 修复

lizhe 6 months ago
parent
commit
c2342cc6ea

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

@@ -1524,6 +1524,8 @@ extension KMLeftSideViewController: NSTableViewDelegate, NSTableViewDataSource {
             guard let last = rowIndexes.last, last < self.pageCount() else {
                 return
             }
+            //删除page时移除选中状态的annotation
+            self.listView?.activeAnnotations = []
             for idx in rowIndexes {
                 if let page = self.pdfDocument()?.page(at: UInt(idx)) {
 //                    for anno in page.annotations {