X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c905c0d60f4bd407cc4cbfd809d5cf8a51a61523..3e1924dd5f5744c3e2a8973de9b3e4f372b7fd85:/src/generic/combog.cpp diff --git a/src/generic/combog.cpp b/src/generic/combog.cpp index 8deece8589..f2cb9abf67 100644 --- a/src/generic/combog.cpp +++ b/src/generic/combog.cpp @@ -32,6 +32,7 @@ #include "wx/combobox.h" #include "wx/dcclient.h" #include "wx/settings.h" + #include "wx/textctrl.h" #endif #include "wx/dcbuffer.h" @@ -392,6 +393,7 @@ void wxGenericComboCtrl::SetCustomPaintWidth( int width ) tc->RemoveEventHandler(m_textEvtHandler); delete m_textEvtHandler; +#if wxUSE_VALIDATORS wxValidator* pValidator = tc->GetValidator(); if ( pValidator ) { @@ -400,6 +402,7 @@ void wxGenericComboCtrl::SetCustomPaintWidth( int width ) delete pValidator; } else +#endif { CreateTextCtrl( tcCreateStyle, wxDefaultValidator ); }