]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/dbgrptg.cpp
applying OSAF patch for "toolbar selection not correct on Mac after calling Realize...
[wxWidgets.git] / src / generic / dbgrptg.cpp
index d265f9eb3e11fc63e0cc4cd3dd5c4562ab85ade1..8a5b73ce39bee6a90ebc50e796e2e082dc261156 100644 (file)
@@ -39,6 +39,9 @@
 #include "wx/mimetype.h"
 
 #include "wx/statline.h"
+#include "wx/stattext.h"
+#include "wx/filedlg.h"
+#include "wx/valtext.h"
 
 // ----------------------------------------------------------------------------
 // wxDumpPreviewDlg: simple class for showing ASCII preview of dump files
@@ -165,9 +168,11 @@ wxDumpOpenExternalDlg::wxDumpOpenExternalDlg(wxWindow *parent,
                                 wxID_ANY,
                                 wxEmptyString,
                                 wxDefaultPosition,
-                                wxSize(250, -1),
-                                0,
-                                wxTextValidator(wxFILTER_NONE, &m_command)
+                                wxSize(250, wxDefaultCoord),
+                                0
+#if wxUSE_VALIDATORS
+                                ,wxTextValidator(wxFILTER_NONE, &m_command)
+#endif
                               );
     sizerH->Add(command,
                     wxSizerFlags(1).Align(wxALIGN_CENTER_VERTICAL));