]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/gnome/gprint.cpp
avoid buffer overrun
[wxWidgets.git] / src / gtk / gnome / gprint.cpp
index 9be9ac7d62585bdebc7c0d126b6fa7c3b03c1100..45e9735ad302ea59fbb8d85cc91a6dff867d73d3 100644 (file)
@@ -795,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;
     }