diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2014-02-13 17:46:38 -0800 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2014-09-09 16:39:31 -0700 |
commit | 884db2c1bda34207f5a753cb19852c51d9d82980 (patch) | |
tree | 63ef649cc3c763ab5d8c91869a99ffe67b01f3b5 /platform/winrt/gsview/MainWindow.xaml.cs | |
parent | 2b5c4cc1929bf4a702e943d2d73802d3e0b0ec11 (diff) | |
download | mupdf-884db2c1bda34207f5a753cb19852c51d9d82980.tar.xz |
Force clean up when document closed.
Diffstat (limited to 'platform/winrt/gsview/MainWindow.xaml.cs')
-rw-r--r-- | platform/winrt/gsview/MainWindow.xaml.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/winrt/gsview/MainWindow.xaml.cs b/platform/winrt/gsview/MainWindow.xaml.cs index 03fae27d..bdd9c8cb 100644 --- a/platform/winrt/gsview/MainWindow.xaml.cs +++ b/platform/winrt/gsview/MainWindow.xaml.cs @@ -229,6 +229,7 @@ namespace gsview m_isXPS = false; m_zoomhandled = false; xaml_CancelThumb.IsEnabled = true; + m_currpage = 0; return result; } @@ -248,7 +249,7 @@ namespace gsview private void CloseDoc() { - + CleanUp(); } /* Set the page with the new raster information */ @@ -417,7 +418,6 @@ namespace gsview xaml_DistillGrid.Visibility = System.Windows.Visibility.Visible; return; } - /* Set if this is already xps for printing */ if (extension.ToUpper() == ".XPS") m_isXPS = true; @@ -806,6 +806,7 @@ namespace gsview break; case GS_Task_t.PS_DISTILL: + xaml_DistillGrid.Visibility = System.Windows.Visibility.Collapsed; StartViewer(result.outputfile); break; |