X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66c59e2c54cd688d17a4bbed00050defe7ed12c7..5b0c31c300bc5cab3346afd38fb444a1c52a53ac:/src/generic/colrdlgg.cpp?ds=sidebyside diff --git a/src/generic/colrdlgg.cpp b/src/generic/colrdlgg.cpp index ec97500ac8..0f4bfd6bab 100644 --- a/src/generic/colrdlgg.cpp +++ b/src/generic/colrdlgg.cpp @@ -140,8 +140,9 @@ void wxGenericColourDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event)) bool wxGenericColourDialog::Create(wxWindow *parent, wxColourData *data) { - if ( !wxDialog::Create(parent, wxID_ANY, _("Choose colour"), - wxPoint(0,0), wxSize(900, 900)) ) + if ( !wxDialog::Create(GetParentForModalDialog(parent), wxID_ANY, + _("Choose colour"), + wxPoint(0, 0), wxSize(900, 900)) ) return false; if (data)