소스 검색

【综合】整理代码

tangchao 1 년 전
부모
커밋
a798f2ba21
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      PDF Office/PDF Master/Class/PDFTools/PageEdit/Window/KMPDFEditInsertPageWindow.swift

+ 1 - 1
PDF Office/PDF Master/Class/PDFTools/PageEdit/Window/KMPDFEditInsertPageWindow.swift

@@ -147,7 +147,7 @@ class KMPDFEditInsertPageWindow: NSWindowController {
 
                         self.pageCountLabel.stringValue = String(format: "/%ld", self.pdfDocument?.pageCount ?? 0)
                         self.byPageStepper.minValue = 1.0
-                        self.byPageStepper.maxValue = self.pdfDocument?.pageCount ?? 0
+                        self.byPageStepper.maxValue = Double(self.pdfDocument?.pageCount ?? 0)
                     }
                 }
             }