]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/prntbase.cpp
added default ctor for wxDirDialog
[wxWidgets.git] / src / common / prntbase.cpp
index 5003ec570afdcab50cf57f1b7b4d1087e5dd7abe..7966f5479b11d324b6c95ab4cdde78c68d2b9762 100644 (file)
@@ -780,10 +780,10 @@ void wxPrintPreviewBase::SetZoom(int percent)
         m_previewBitmap = NULL;
     }
 
-
     if (m_previewCanvas)
     {
         RenderPage(m_currentPage);
+        ((wxScrolledWindow *) m_previewCanvas)->Scroll(0, 0);
         m_previewCanvas->Clear();
         m_previewCanvas->Refresh();
     }