Browse Source

【页面编辑】修复插入文件插入位置偶发不准的情况

tangchao 1 year ago
parent
commit
dd3da64305

+ 1 - 1
PDF Office/PDF Master/Class/PDFTools/PageEdit/Controller/KMPDFEditViewController.swift

@@ -325,7 +325,7 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
         
         // 在当前选中item之后插入
         // 多选时,则取最后一页
-        for indexpath in self.thumbnailView.selectionIndexPaths {
+        for indexpath in self.thumbnailView.selectionIndexPaths.sorted() {
             index = indexpath.item
         }
         return index