]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/colrdlgg.cpp
build fix for wxUSE_LOG==0
[wxWidgets.git] / src / generic / colrdlgg.cpp
index 03c93c5e8bb3465b0c6f230affd2d4a3441a834b..c1d81ee82fe6dcbbe0fc87e99093ebd126980f6e 100644 (file)
@@ -35,6 +35,7 @@
     #include "wx/statline.h"
 #endif
 
+#include "wx/colourdata.h"
 #include "wx/generic/colrdlgg.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxGenericColourDialog, wxDialog)
@@ -140,7 +141,7 @@ void wxGenericColourDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
 
 bool wxGenericColourDialog::Create(wxWindow *parent, wxColourData *data)
 {
-    if ( !wxDialog::Create(GetParentForModalDialog(parent), wxID_ANY,
+    if ( !wxDialog::Create(GetParentForModalDialog(parent, 0), wxID_ANY,
                            _("Choose colour"),
                            wxPoint(0, 0), wxSize(900, 900)) )
         return false;