#if wxUSE_LIBGNOMEPRINT
-#include "math.h"
-
+#include "wx/math.h"
#include "wx/fontutil.h"
#include "wx/printdlg.h"
#include "wx/gtk/private.h"
int ret = dialog.ShowModal();
if (ret == wxID_CANCEL)
{
- sm_lastError = wxPRINTER_ERROR;
+ sm_lastError = wxPRINTER_CANCELLED;
return NULL;
}