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:
parent
931996e61b
commit
e403e4c0d4
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue