]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmprint.cpp
Don't generate duplicated events for clicks on tree +/- buttons.
[wxWidgets.git] / src / html / htmprint.cpp
index ce71d5fc6d58ff30c94089792ce2f43e0381d6c3..6a22f88547216fb3bff807a225a50a233c5126e9 100644 (file)
@@ -218,16 +218,16 @@ wxHtmlPrintout::CheckFit(const wxSize& pageArea, const wxSize& docArea) const
                  GetTitle()
                 ),
                 _("Printing"),
-                wxYES_NO | wxNO_DEFAULT | wxICON_QUESTION
+                wxOK | wxCANCEL | wxCANCEL_DEFAULT | wxICON_QUESTION
             );
         dlg.SetExtendedMessage
             (
                 _("If possible, try changing the layout parameters to "
-                  "make the printout more narrow")
+                  "make the printout more narrow.")
             );
-        dlg.SetYesNoLabels(_("&Print"), _("&Cancel"));
+        dlg.SetOKLabel(wxID_PRINT);
 
-        if ( dlg.ShowModal() != wxYES )
+        if ( dlg.ShowModal() == wxID_CANCEL )
             return false;
     }