diff options
-rw-r--r-- | svx/source/svdraw/svdibrow.cxx | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx index 125c0071e345..0029a8fb049f 100644 --- a/svx/source/svdraw/svdibrow.cxx +++ b/svx/source/svdraw/svdibrow.cxx @@ -532,18 +532,12 @@ bool _SdrItemBrowserControl::BeginChangeEntry(std::size_t nPos) bool _SdrItemBrowserControl::EndChangeEntry() { - bool bRet = false; - if (pEditControl!=nullptr) { - aEntryChangedHdl.Call(*this); - pEditControl.disposeAndClear(); - delete pAktChangeEntry; - pAktChangeEntry=NULL; - vcl::Window* pParent=GetParent(); - pParent->SetText(aWNamMerk); - SetMode(MYBROWSEMODE); - bRet = true; - } - return bRet; + if (!pEditControl) + return false; + + aEntryChangedHdl.Call(*this); + BreakChangeEntry(); + return true; } void _SdrItemBrowserControl::BreakChangeEntry() |