소스 검색

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

niehaoyu 10 달 전
부모
커밋
453e353f93
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      PDF Office/PDF Master/Class/PDFTools/Merge/MergeNew/KMMergeWindowController.swift

+ 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 {