From 0187f0bcf4795c198d1f5974ce9b3ab58d643206 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 6 Sep 2007 20:30:07 +0000 Subject: [PATCH] wxDC::Clear() shouldn't do anything in printing DCs (I think) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/print.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gtk/print.cpp b/src/gtk/print.cpp index d52518e89e..e78836ff55 100644 --- a/src/gtk/print.cpp +++ b/src/gtk/print.cpp @@ -1940,11 +1940,15 @@ void wxGtkPrintDC::DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y, void wxGtkPrintDC::Clear() { +// Clear does nothing for printing, but keep the code +// for later reuse +/* gs_cairo->cairo_save(m_cairo); gs_cairo->cairo_set_operator (m_cairo, CAIRO_OPERATOR_SOURCE); SetBrush(m_backgroundBrush); gs_cairo->cairo_paint(m_cairo); gs_cairo->cairo_restore(m_cairo); +*/ } void wxGtkPrintDC::SetFont( const wxFont& font ) -- 2.50.0