Dont't finish any editing if there is no control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -720,6 +720,8 @@ bool wxDataViewRendererBase::StartEditing( const wxDataViewItem &item, wxRect la
|
|||||||
|
|
||||||
void wxDataViewRendererBase::CancelEditing()
|
void wxDataViewRendererBase::CancelEditing()
|
||||||
{
|
{
|
||||||
|
if (!m_editorCtrl) return;
|
||||||
|
|
||||||
GetOwner()->GetOwner()->GetMainWindow()->SetFocus();
|
GetOwner()->GetOwner()->GetMainWindow()->SetFocus();
|
||||||
|
|
||||||
m_editorCtrl->Hide();
|
m_editorCtrl->Hide();
|
||||||
@@ -728,6 +730,8 @@ void wxDataViewRendererBase::CancelEditing()
|
|||||||
|
|
||||||
bool wxDataViewRendererBase::FinishEditing()
|
bool wxDataViewRendererBase::FinishEditing()
|
||||||
{
|
{
|
||||||
|
if (!m_editorCtrl) return true;
|
||||||
|
|
||||||
wxVariant value;
|
wxVariant value;
|
||||||
GetValueFromEditorCtrl( m_editorCtrl, value );
|
GetValueFromEditorCtrl( m_editorCtrl, value );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user