Check GetValueFromEditorCtrl() return code in wxDataViewCtrl code.

Don't do anything when finishing editing an item if its new value couldn't be
retrieved.

See #16912.
This commit is contained in:
Vadim Zeitlin
2015-04-17 13:17:09 +02:00
parent faf3e3d41f
commit 3673966ee3

View File

@@ -746,7 +746,8 @@ bool wxDataViewRendererBase::FinishEditing()
return true;
wxVariant value;
GetValueFromEditorCtrl( m_editorCtrl, value );
if ( !GetValueFromEditorCtrl(m_editorCtrl, value) )
return false;
wxDataViewCtrl* dv_ctrl = GetOwner()->GetOwner();