summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2015-02-09 12:09:34 -0800
committerMichael Vrhel <michael.vrhel@artifex.com>2015-02-10 10:56:34 -0800
commitda04ae926d5ba78fd87f4d5da4c1c889b511c74b (patch)
tree64580fee91f588709fef64d4b9c7be1b06a7f059 /platform/windows
parentd9dc4846ef05ec0adccbdacf9ab49592f0e0b4c8 (diff)
downloadmupdf-da04ae926d5ba78fd87f4d5da4c1c889b511c74b.tar.xz
Print dialog release when new document is opened.
If this release is not done, the previous documents pages appear in the preview and bad things happen if you try to step through the pages in the preview.
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/gsview/MainWindow.xaml.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/windows/gsview/MainWindow.xaml.cs b/platform/windows/gsview/MainWindow.xaml.cs
index d29ef907..0ca822e9 100644
--- a/platform/windows/gsview/MainWindow.xaml.cs
+++ b/platform/windows/gsview/MainWindow.xaml.cs
@@ -743,10 +743,11 @@ namespace gsview
m_password.Close();
if (m_printcontrol != null && m_printcontrol.IsActive)
- {
m_printcontrol.Close();
- m_printcontrol = null;
- }
+
+ /* Release the print control regardless of it being opened.
+ We don't want previous documents pages in the preview */
+ m_printcontrol = null;
if (m_infowindow != null && m_infowindow.IsActive)
m_infowindow.Close();