Author: alg
Date: Mon Apr 28 16:57:14 2014
New Revision: 1590709
URL: http://svn.apache.org/r1590709
Log:
i124760 ensure that only the created object is selected
Modified:
openoffice/trunk/main/svx/source/svdraw/svdedtv2.cxx
Modified: openoffice/trunk/main/svx/source/svdraw/svdedtv2.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/svdraw/svdedtv2.cxx?rev=1590709&r1=1590708&r2=1590709&view=diff
==============================================================================
--- openoffice/trunk/main/svx/source/svdraw/svdedtv2.cxx (original)
+++ openoffice/trunk/main/svx/source/svdraw/svdedtv2.cxx Mon Apr 28 16:57:14
2014
@@ -1164,6 +1164,12 @@ void SdrEditView::MergeMarkedObjects(Sdr
pInsOL->InsertObject(pPath, nInsPos, &aReason);
if( bUndo )
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);
}