cid#1680643 Logically dead code

regression from
  commit bd047bbb9e
  Author: Armin Le Grand (collabora) <Armin.LeGrand@collabora.com>
  Date:   Tue Jan 20 16:18:20 2026 +0100
  SmartArt: Preparations for roundtrip

Change-Id: I65a5bec1c448f10644e4435b13241eaccc58ce22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198120
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2026-01-27 09:15:03 +01:00
parent a7ef6f04e9
commit 39f331e50b
+1 -1
View File
@@ -429,7 +429,7 @@ void IDiagramHelper::disconnectFromSdrObjGroup()
void IDiagramHelper::connectToSdrObjGroup(com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& rTarget)
{
SdrObjGroup* pGroupObject(nullptr);
if (pGroupObject && mxGroupShape && rTarget == mxGroupShape)
if (mxGroupShape && rTarget == mxGroupShape)
{
pGroupObject = dynamic_cast<SdrObjGroup*>(SdrObject::getSdrObjectFromXShape(mxGroupShape));
if (pGroupObject != nullptr && pGroupObject->mp_DiagramHelper.get() == this)