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
This commit is contained in:
Karsten Ballüder 1999-05-07 23:05:22 +00:00
parent ba2a0103aa
commit aff37a19e9

View File

@ -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();
}