Browse Source

【页面编辑】拖动页面后松手,崩溃,必现(已修复)

tangchao 1 year ago
parent
commit
586628bedc

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

@@ -589,7 +589,7 @@ typealias KMMainDocumentCloudUploadHanddler = (@escaping(Bool, String)->()) -> (
                         }
                         return
                     }
-                    callback(false)
+                    callback(false, KMResult.cancel, false)
                 }
                 return
             }

+ 2 - 1
PDF Office/PDF Master/Class/PDFTools/PageEdit/View/KMPDFEditToolbar.swift

@@ -8,6 +8,7 @@
 import Cocoa
 
 enum KMPageEditType: Int {
+    case none       = 0
     case pageRange = 1
     case leftRotate
     case rightRotate
@@ -23,7 +24,7 @@ enum KMPageEditType: Int {
     
     case paste = 100
     
-    static let none: KMPageEditType = KMPageEditType(rawValue: 0)!
+//    static let none: KMPageEditType = KMPageEditType(rawValue: 0)!
 //    static let paste: KMPageEditType = KMPageEditType(rawValue: 100)!
     
     static var insert_files: Int {