Kaydet (Commit) b6189665 authored tarafından Armin Le Grand's avatar Armin Le Grand

i124760 ensure that only the created object is selected

üst 5ae7fba3
...@@ -1164,6 +1164,12 @@ void SdrEditView::MergeMarkedObjects(SdrMergeMode eMode) ...@@ -1164,6 +1164,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));
// #124760# 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, sal_False, sal_True); MarkObj(pPath, pInsPV, sal_False, sal_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