Kaydet (Commit) e34c437d authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Caolán McNamara

Resolves: #i124760# ensure that only the created object is selected

(cherry picked from commit b6189665)

Conflicts:
	svx/source/svdraw/svdedtv2.cxx

Change-Id: I4ebf95a5c42fd2348dbb79f99881217a74301197
üst d46e7dab
...@@ -1136,6 +1136,12 @@ void SdrEditView::MergeMarkedObjects(SdrMergeMode eMode) ...@@ -1136,6 +1136,12 @@ void SdrEditView::MergeMarkedObjects(SdrMergeMode eMode)
pInsOL->InsertObject(pPath, nInsPos, &aReason); pInsOL->InsertObject(pPath, nInsPos, &aReason);
if( bUndo ) if( bUndo )
AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoNewObject(*pPath)); 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); MarkObj(pPath, pInsPV, false, true);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment