X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6ebb51430cd8e4a9a11c6c5a5ca7c3ff9d7a72a..4304b42f1a1a586e96c645cb47d1cd3c98e3dec6:/src/os2/gauge.cpp diff --git a/src/os2/gauge.cpp b/src/os2/gauge.cpp index 00ab8236bf..d8185a69d9 100644 --- a/src/os2/gauge.cpp +++ b/src/os2/gauge.cpp @@ -57,7 +57,9 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, +#if wxUSE_VALIDATORS const wxValidator& validator, +#endif const wxString& name) { static bool wxGaugeOS2Initialised = FALSE; @@ -73,7 +75,9 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id, } SetName(name); +#if wxUSE_VALIDATORS SetValidator(validator); +#endif if (parent) parent->AddChild(this); m_rangeMax = range; m_gaugePos = 0;