]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/filedlgg.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / generic / filedlgg.cpp
index a2a370d862fed7f76af7e71bdf2b782209b116b3..cd2e4da73f007f841464b3948d193e034bac5fc4 100644 (file)
@@ -49,6 +49,7 @@
 #include "wx/filectrl.h"
 #include "wx/generic/filedlgg.h"
 #include "wx/debug.h"
+#include "wx/testing.h"
 
 #if wxUSE_TOOLTIPS
     #include "wx/tooltip.h"
@@ -308,6 +309,8 @@ wxBitmapButton* wxGenericFileDialog::AddBitmapButton( wxWindowID winId,
 
 int wxGenericFileDialog::ShowModal()
 {
+    WX_TESTING_SHOW_MODAL_HOOK();
+
     if (CreateExtraControl())
     {
         wxSizer *sizer = GetSizer();