Selaa lähdekoodia

【fix】【主页】附件文档对比完成后,分别只有一页的文档,在页码输入框内能输入2

tangchao 5 kuukautta sitten
vanhempi
commit
dbf06db175

+ 1 - 1
PDF Office/PDF Master/Class/PDFTools/Compare/ViewController/ContentComplete/View/KMCompareToolbar.swift

@@ -128,7 +128,7 @@ extension KMCompareToolbar: NSTextFieldDelegate{
             var index = currentPageTF.integerValue
             if index >= totalPage {
                 index = totalPage
-                currentPage = index
+                currentPage = index-1
             }  else if index == 0 {
                 let tempIndex = currentPage
                 currentPage = tempIndex

+ 4 - 0
PDF Office/PDF Master/Class/README.md

@@ -217,6 +217,10 @@
 
 * KMAnnotationFontWindowController
 
+## 文件对比
+
+* 下方工具bar KMCompareToolbar
+
 ## xxx
 
 [sign in](https://www.baidu.com) the [dashboard](https://www.baidu.com). to [sign up](https://www.baidu.com)