Browse Source

【注释】点击注释工具栏崩溃了一次 -- 修复

lizhe 6 months ago
parent
commit
6784410f3b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PDF Office/PDF Master/Class/Document/KMMainDocument.swift

+ 1 - 1
PDF Office/PDF Master/Class/Document/KMMainDocument.swift

@@ -592,7 +592,7 @@ typealias KMMainDocumentCloudUploadHanddler = (@escaping(Bool, String)->()) -> (
             
             
             let dic = notification.object as? NSDictionary
             let dic = notification.object as? NSDictionary
             if dic?["object"] is CPDFAnnotation {
             if dic?["object"] is CPDFAnnotation {
-                let annotation : CPDFAnnotation = dic?["object"] as? CPDFAnnotation ?? CPDFAnnotation()
+                guard let annotation = dic?["object"] as? CPDFAnnotation else { return }
                 document = annotation.page.document
                 document = annotation.page.document
 
 
             } else if dic?["object"] is CPDFListView {
             } else if dic?["object"] is CPDFListView {