added slightly more informative failure reporting.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -119,11 +119,7 @@ static bool wxIsAlphaNumeric(const wxString& val)
|
||||
// This function can pop up an error message.
|
||||
bool wxTextValidator::Validate(wxWindow *parent)
|
||||
{
|
||||
if ( !m_validatorWindow )
|
||||
return FALSE;
|
||||
if ( !m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
|
||||
return FALSE;
|
||||
if ( !m_stringValue )
|
||||
if( !CheckValidator() )
|
||||
return FALSE;
|
||||
|
||||
wxTextCtrl *control = (wxTextCtrl *) m_validatorWindow ;
|
||||
@@ -195,11 +191,7 @@ bool wxTextValidator::Validate(wxWindow *parent)
|
||||
// Called to transfer data to the window
|
||||
bool wxTextValidator::TransferToWindow(void)
|
||||
{
|
||||
if ( !m_validatorWindow )
|
||||
return FALSE;
|
||||
if ( !m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
|
||||
return FALSE;
|
||||
if ( !m_stringValue )
|
||||
if( !CheckValidator() )
|
||||
return FALSE;
|
||||
|
||||
wxTextCtrl *control = (wxTextCtrl *) m_validatorWindow ;
|
||||
@@ -211,11 +203,7 @@ bool wxTextValidator::TransferToWindow(void)
|
||||
// Called to transfer data to the window
|
||||
bool wxTextValidator::TransferFromWindow(void)
|
||||
{
|
||||
if ( !m_validatorWindow )
|
||||
return FALSE;
|
||||
if ( !m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
|
||||
return FALSE;
|
||||
if ( !m_stringValue )
|
||||
if( !CheckValidator() )
|
||||
return FALSE;
|
||||
|
||||
wxTextCtrl *control = (wxTextCtrl *) m_validatorWindow ;
|
||||
|
Reference in New Issue
Block a user