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:
@@ -746,7 +746,8 @@ bool wxDataViewRendererBase::FinishEditing()
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
wxVariant value;
|
wxVariant value;
|
||||||
GetValueFromEditorCtrl( m_editorCtrl, value );
|
if ( !GetValueFromEditorCtrl(m_editorCtrl, value) )
|
||||||
|
return false;
|
||||||
|
|
||||||
wxDataViewCtrl* dv_ctrl = GetOwner()->GetOwner();
|
wxDataViewCtrl* dv_ctrl = GetOwner()->GetOwner();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user