|
@@ -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()
|
|
|
+ }
|
|
|
|
|
|
var insertIndex = 0
|
|
|
for i in 0..<rootPDFOutlineArray.count {
|