Browse Source

【综合】合并界面大纲逻辑处理

niehaoyu 10 tháng trước cách đây
mục cha
commit
453e353f93

+ 3 - 1
PDF Office/PDF Master/Class/PDFTools/Merge/MergeNew/KMMergeWindowController.swift

@@ -214,7 +214,9 @@ extension KMMergeWindowController {
         
         let fileName = (files.first?.filePath.deletingPathExtension.lastPathComponent ?? "") + "_Merged"
         DispatchQueue.main.async {
-            self.oldPDFDocument.outlineRoot = PDFOutline.init()
+            if self.oldPDFDocument.outlineRoot == nil {
+                self.oldPDFDocument.outlineRoot = PDFOutline.init()
+            }
 //            if allPage {
                 var insertIndex = 0
                 for i in 0..<rootPDFOutlineArray.count {