From: Robert Roebling <robert@roebling.de> Date: Thu, 6 Sep 2007 20:30:07 +0000 (+0000) Subject: wxDC::Clear() shouldn't do anything in printing DCs (I think) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0187f0bcf4795c198d1f5974ce9b3ab58d643206 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 --- 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 )