X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6c6acd6409c87b69e7aa872eb3e9d57d66aaa1a..b2c13097deb7736a86a278c02d0b3f7cd9873750:/src/gtk/gnome/gprint.cpp diff --git a/src/gtk/gnome/gprint.cpp b/src/gtk/gnome/gprint.cpp index c761a15e96..75daf61319 100644 --- a/src/gtk/gnome/gprint.cpp +++ b/src/gtk/gnome/gprint.cpp @@ -22,8 +22,7 @@ #if wxUSE_LIBGNOMEPRINT -#include "math.h" - +#include "wx/math.h" #include "wx/fontutil.h" #include "wx/printdlg.h" #include "wx/gtk/private.h" @@ -796,7 +795,7 @@ wxDC* wxGnomePrinter::PrintDialog( wxWindow *parent ) int ret = dialog.ShowModal(); if (ret == wxID_CANCEL) { - sm_lastError = wxPRINTER_ERROR; + sm_lastError = wxPRINTER_CANCELLED; return NULL; } @@ -815,7 +814,7 @@ bool wxGnomePrinter::Setup( wxWindow *parent ) // wxGnomePrintDC //----------------------------------------------------------------------------- -IMPLEMENT_CLASS(wxGnomePrintDC, wxDCBase) +IMPLEMENT_CLASS(wxGnomePrintDC, wxDC) wxGnomePrintDC::wxGnomePrintDC( wxGnomePrinter *printer ) {