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:
Paul Cornett
2007-04-03 02:44:32 +00:00
parent c91922129f
commit 43147cef6c
3 changed files with 9 additions and 2 deletions

View File

@@ -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 );
}