X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..c6e62f74fcac5b62889b59e7ce7a41d0ce884d7b:/src/msw/gauge95.cpp diff --git a/src/msw/gauge95.cpp b/src/msw/gauge95.cpp index 0805a02f98..38b99d60dc 100644 --- a/src/msw/gauge95.cpp +++ b/src/msw/gauge95.cpp @@ -44,7 +44,9 @@ bool wxGauge95::Create(wxWindow *parent, wxWindowID id, const wxString& name) { SetName(name); +#if wxUSE_VALIDATORS SetValidator(validator); +#endif // wxUSE_VALIDATORS if (parent) parent->AddChild(this); m_rangeMax = range;