From d876667522bb46aefe877ca13e78d8c8f13c569b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 28 Jun 2006 12:56:05 +0000 Subject: [PATCH] Fixed zoom problem (Robert J.Lang) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + include/wx/prntbase.h | 1 + src/common/prntbase.cpp | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 3da93850c3..1ed5c3107c 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -155,6 +155,7 @@ All (GUI): - Fixed 64-bit issue in wxNotebook causing segfaults on Tru64 Unix. - Made it possible to associate context help to a region of a window. - Added support for tabs in wxRichTextCtrl (Ashish More). +- Fixed problem with zoom setting in print preview. wxMSW: diff --git a/include/wx/prntbase.h b/include/wx/prntbase.h index 23b60fca7d..3e39b0ea38 100644 --- a/include/wx/prntbase.h +++ b/include/wx/prntbase.h @@ -568,6 +568,7 @@ public: virtual void AdjustScrollbars(wxPreviewCanvas *canvas); virtual bool RenderPage(int pageNum); virtual void SetZoom(int percent); + virtual int GetZoom() const; virtual bool Print(bool interactive); virtual void DetermineScaling(); diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index 800ba84670..13ddf2a44f 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -1477,6 +1477,11 @@ void wxPrintPreview::SetZoom(int percent) m_pimpl->SetZoom( percent ); } +int wxPrintPreview::GetZoom() const +{ + return m_pimpl->GetZoom(); +} + wxPrintDialogData& wxPrintPreview::GetPrintDialogData() { return m_pimpl->GetPrintDialogData(); -- 2.45.2