]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/colordlg.cpp
simplify code to return from the end of the function
[wxWidgets.git] / src / msw / colordlg.cpp
index d3a8eaf655650f001cb729bac97a7f3ed99b5b53..688ca17380e51d4ab41f777b304324e109434d99 100644 (file)
@@ -27,6 +27,7 @@
 #if wxUSE_COLOURDLG && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
 
 #include "wx/colordlg.h"
+#include "wx/testing.h"
 
 #ifndef WX_PRECOMP
     #include "wx/msw/wrapcdlg.h"
@@ -114,6 +115,8 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data)
 
 int wxColourDialog::ShowModal()
 {
+    WX_TESTING_SHOW_MODAL_HOOK();
+
     // initialize the struct used by Windows
     CHOOSECOLOR chooseColorStruct;
     memset(&chooseColorStruct, 0, sizeof(CHOOSECOLOR));