From 92120c6e8991a4db4f880edc3ebc47a7cf71cbd8 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 24 Nov 2006 10:48:56 +0000 Subject: [PATCH] Override SetLogicalOrigin and SetDeviceOrigin in GNOME print DC as this will probably be needed to fix the printing bug reported recently. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/gnome/gprint.h | 3 +++ src/gtk/gnome/gprint.cpp | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/include/wx/gtk/gnome/gprint.h b/include/wx/gtk/gnome/gprint.h index 15869d68c6..317dced92d 100644 --- a/include/wx/gtk/gnome/gprint.h +++ b/include/wx/gtk/gnome/gprint.h @@ -262,6 +262,9 @@ public: wxSize GetPPI() const; void SetAxisOrientation( bool xLeftRight, bool yBottomUp ); + void SetLogicalOrigin( wxCoord x, wxCoord y ); + void SetDeviceOrigin( wxCoord x, wxCoord y ); + virtual int GetDepth() const { return 24; } void SetBackgroundMode(int WXUNUSED(mode)) { } diff --git a/src/gtk/gnome/gprint.cpp b/src/gtk/gnome/gprint.cpp index 2b6b50d6b8..aae14b5993 100644 --- a/src/gtk/gnome/gprint.cpp +++ b/src/gtk/gnome/gprint.cpp @@ -1828,6 +1828,16 @@ void wxGnomePrintDC::SetAxisOrientation( bool xLeftRight, bool yBottomUp ) ComputeScaleAndOrigin(); } +void wxGnomePrintDC::SetLogicalOrigin( wxCoord x, wxCoord y ) +{ + wxDC::SetLogicalOrigin( x, y ); +} + +void wxGnomePrintDC::SetDeviceOrigin( wxCoord x, wxCoord y ) +{ + wxDC::SetDeviceOrigin( x, y ); +} + void wxGnomePrintDC::SetResolution(int ppi) { } -- 2.45.2