X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c905c0d60f4bd407cc4cbfd809d5cf8a51a61523..d6f2a8911e509fd9e61f881cc881a97f5aa05ae8:/src/generic/combog.cpp diff --git a/src/generic/combog.cpp b/src/generic/combog.cpp index 8deece8589..29b9d21f96 100644 --- a/src/generic/combog.cpp +++ b/src/generic/combog.cpp @@ -392,6 +392,7 @@ void wxGenericComboCtrl::SetCustomPaintWidth( int width ) tc->RemoveEventHandler(m_textEvtHandler); delete m_textEvtHandler; +#if wxUSE_VALIDATORS wxValidator* pValidator = tc->GetValidator(); if ( pValidator ) { @@ -400,6 +401,7 @@ void wxGenericComboCtrl::SetCustomPaintWidth( int width ) delete pValidator; } else +#endif { CreateTextCtrl( tcCreateStyle, wxDefaultValidator ); }