Browse Source

【综合】BOTA 点击大纲列表中的箭头必现崩溃(已修复)

tangchao 1 year ago
parent
commit
845fd9008c

+ 3 - 2
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift

@@ -2409,6 +2409,9 @@ extension KMLeftSideViewController: NSOutlineViewDelegate, NSOutlineViewDataSour
                 if let data = item as? String, data == "Bookmarks" {
                     return array[index]
                 } else if item is CPDFOutline {
+                    if self.isSearchOutlineMode == false {
+                        return (item as! CPDFOutline).child(at: UInt(index))
+                    }
                     let child = item as! CPDFOutline
 //                    if child.numberOfChildren == 0 {
 //                        return 0
@@ -2417,13 +2420,11 @@ extension KMLeftSideViewController: NSOutlineViewDelegate, NSOutlineViewDataSour
                     for i in 0 ..< child.numberOfChildren {
                         if let _child = child.child(at: i) {
                             if self._hasContainString(self.outlineSearchField.stringValue, rootOutline: _child) {
-//                                num += 1
                                 array.append(_child)
                             }
                         }
                     }
                     
-//                    return (item as! CPDFOutline).child(at: UInt(index))
                     return array[index]
                 } else if item is CPDFBookmark {
                     return ""

+ 0 - 16
PDF Office/PDF Reader Pro.xcodeproj/xcuserdata/kdanmobile.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -435,22 +435,6 @@
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "8B99A3AE-97FD-4ADA-B2E7-E20BCBFD9E5B"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "PDF Master/Class/PDFWindowController/MainWindowController/SKPresentationOptionsSheetController.swift"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "284"
-            endingLineNumber = "284"
-            landmarkName = "changePageTransitionType()"
-            landmarkType = "7">
-         </BreakpointContent>
-      </BreakpointProxy>
       <BreakpointProxy
          BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
          <BreakpointContent