cid#1500743 Unchecked dynamic_cast

Change-Id: I5a384ee3dae657d23bbba46c0dd19e6a71c752b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130987
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2022-03-04 13:47:46 +00:00
parent 931996e61b
commit e403e4c0d4

View file

@ -73,6 +73,11 @@ void AdvancedDiagramHelper::reLayout()
// Access the GroupObject representing the SmartArt in DrawingLayer
SdrObjGroup* pAnchorObj(dynamic_cast<SdrObjGroup*>(SdrObject::getSdrObjectFromXShape(pParentShape->getXShape())));
if(!pAnchorObj)
{
SAL_WARN("oox", "missing SdrObjGroup");
return;
}
// Rescue/remember geometric transformation of existing Diagram
basegfx::B2DHomMatrix aTransformation;