summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-11-04 20:29:50 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-11-05 20:32:46 +0100
commite8d81c0240a66821ebd9ead3718f32d97ecc416d (patch)
tree7967be4f32a4d4498687264b1386eb668bc79951 /svx
parent8a8623d819b3323fb978fccc4b01ec34bc6adaff (diff)
_SdrItemBrowserControl: reuse BreakChangeEntry in EndChangeEntry
Change-Id: I96667dc89a25455819898b68c2366c4ecef17e6d
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdibrow.cxx18
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()