瀏覽代碼

【综合】整理代码

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