X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37f214d588b02079a3ddf64c2e46585ca1657c1b..16c1f79c04174b8c5e81828c20199724d9593b72:/src/os2/combobox.cpp diff --git a/src/os2/combobox.cpp b/src/os2/combobox.cpp index 6e4dc8074d..a91a566f36 100644 --- a/src/os2/combobox.cpp +++ b/src/os2/combobox.cpp @@ -63,11 +63,15 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id, const wxSize& size, int n, const wxString choices[], long style, +#if wxUSE_VALIDATORS const wxValidator& validator, +#endif const wxString& name) { SetName(name); +#if wxUSE_VALIDATORS SetValidator(validator); +#endif if (parent) parent->AddChild(this); SetBackgroundColour(parent->GetBackgroundColour()) ; SetForegroundColour(parent->GetForegroundColour()) ;