|
@@ -8,6 +8,7 @@ using Prism.Regions;
|
|
using Prism.Services.Dialogs;
|
|
using Prism.Services.Dialogs;
|
|
using System;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
|
+using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Threading.Tasks;
|
|
@@ -48,8 +49,22 @@ namespace PDF_Master.ViewModels.PropertyPanel.ViewModular
|
|
{
|
|
{
|
|
if (PDFViewer != null)
|
|
if (PDFViewer != null)
|
|
{
|
|
{
|
|
- PDFViewer.GoToPage(PDFViewer.CurrentIndex - 1);
|
|
|
|
-
|
|
|
|
|
|
+ if (PDFViewer.RenderPageStart == PDFViewer.CurrentIndex)
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ PDFViewer.GoToPage(PDFViewer.CurrentIndex - 1);
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ if ((PDFViewer.RenderPageStart - 1) > 0)
|
|
|
|
+ {
|
|
|
|
+ PDFViewer.GoToPage(PDFViewer.RenderPageStart - 1);
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ PDFViewer.GoToPage(PDFViewer.CurrentIndex - 1);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|