build fixes for wxUSE_VALIDATORS==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user