summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2014-04-28 16:57:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-04-29 10:16:36 +0100
commite34c437d2e98753159c9bd82516386143d707d93 (patch)
tree848ec06f62aaff84ba4a26d14df04d4f24dcd785 /svx
parentd46e7dabd3090697c46e24a350cc75f35c28a8f7 (diff)
Resolves: #i124760# ensure that only the created object is selected
(cherry picked from commit b6189665e0143d68cf2fe225eca77bcf0454a107) Conflicts: svx/source/svdraw/svdedtv2.cxx Change-Id: I4ebf95a5c42fd2348dbb79f99881217a74301197
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdedtv2.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx
index 055e3f05f834..056947cbdf7a 100644
--- a/svx/source/svdraw/svdedtv2.cxx
+++ b/svx/source/svdraw/svdedtv2.cxx
@@ -1136,6 +1136,12 @@ void SdrEditView::MergeMarkedObjects(SdrMergeMode eMode)
pInsOL->InsertObject(pPath, nInsPos, &aReason);
if( bUndo )
AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoNewObject(*pPath));
+
+ // #i124760# To have a correct selection with only the new object it is necessary to
+ // unmark all objects first. If not doing so, there may remain invalid pointers to objects
+ //TTTT:Not needed for aw080 (!)
+ UnmarkAllObj(pInsPV);
+
MarkObj(pPath, pInsPV, false, true);
}