From aff37a19e93968cb3efa64fc3949c5f02cc0a9d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Fri, 7 May 1999 23:05:22 +0000 Subject: [PATCH] Fixed SetZoom() so it can be used from the outside. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/prntbase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index 1df630e380..5a95be8d6a 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -752,10 +752,11 @@ void wxPrintPreviewBase::SetZoom(int percent) delete m_previewBitmap; m_previewBitmap = NULL; } - RenderPage(m_currentPage); + if (m_previewCanvas) { + RenderPage(m_currentPage); m_previewCanvas->Clear(); m_previewCanvas->Refresh(); } -- 2.45.2