소스 검색

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

liujiajie 11 달 전
부모
커밋
06e2f8bdbb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      PDF Office/PDF Master/Class/PDFTools/OCRNew/Controller/KMOCRPDFWindowController.swift

+ 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)"
             }
         }
     }