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)