tdf#152683 LO Draw ignoring Undo:Resize Grouped Object

regression from
  commit 4e24efb563
  tdf#54857 elide more dynamic_cast

Change-Id: I4fbabe64649ee47a9360dd939b5f39d35bd29c51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144858
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2022-12-29 12:25:25 +00:00
committed by Noel Grandin
parent 98448a2521
commit 62ed082ee0
+1 -1
View File
@@ -560,7 +560,7 @@ SdrUndoGeoObj::SdrUndoGeoObj(SdrObject& rNewObj)
, mbSkipChangeLayout(false)
{
SdrObjList* pOL=rNewObj.GetSubList();
if (pOL!=nullptr && pOL->GetObjCount() && DynCastE3dScene(&rNewObj))
if (pOL!=nullptr && pOL->GetObjCount() && !DynCastE3dScene(&rNewObj))
{
// this is a group object!
// If this were 3D scene, we'd only add an Undo for the scene itself