Browse Source

[OCR] - 预览页面超出总页数乱码

liujiajie 11 months ago
parent
commit
06e2f8bdbb

+ 1 - 1
PDF Office/PDF Master/Class/PDFTools/OCRNew/Controller/KMOCRPDFWindowController.swift

@@ -745,7 +745,7 @@ class KMOCRPDFWindowController: NSWindowController, NSWindowDelegate, KMGOCRMana
                 PDFView.go(to: pdfDocument?.page(at: UInt(index-1))!)
                 reloadPDFData()
             } else {
-                currentPageLabel.stringValue = "(currentPageIndex+1)"
+                currentPageLabel.stringValue = "\((currentPageIndex ?? 0)+1)"
             }
         }
     }