瀏覽代碼

页面编辑- bug 18416

OYXH\oyxh 1 年之前
父節點
當前提交
fc476fa739
共有 1 個文件被更改,包括 2 次插入6 次删除
  1. 2 6
      PDF Office/ViewModels/PageEdit/PageEditContentViewModel.cs

+ 2 - 6
PDF Office/ViewModels/PageEdit/PageEditContentViewModel.cs

@@ -1,5 +1,6 @@
 using ComPDFKit.PDFDocument;
 using ComPDFKitViewer.PdfViewer;
+using Dropbox.Api.Team;
 using Microsoft.Win32;
 using PDF_Master.CustomControl;
 using PDF_Master.EventAggregators;
@@ -812,7 +813,7 @@ namespace PDF_Master.ViewModels.PageEdit
                     //先删除
                     DoRemoveSelectedPages(indexList, false, true);
 
-                    if (indexList.Count > 0 && indexList.Count == PDFViewer.Document.PageCount)
+                    if ( PDFViewer.Document.PageCount==0)
                     {
                         index = 0;
                     }
@@ -3530,11 +3531,6 @@ namespace PDF_Master.ViewModels.PageEdit
             }
         }
 
-        internal void GoToPage(int index)
-        {
-            PDFViewer.GoToPage(index);
-        }
-
         #endregion Navigate
     }
 }