coverity#1209592 Unchecked dynamic_cast
Change-Id: Id9ac29ec88a98e626a1ecfb364e474b2a11a8004
This commit is contained in:
@@ -154,7 +154,8 @@ uno::Reference< drawing::XShapes > OpenglShapeFactory::getOrCreateChartRootShape
|
|||||||
xPropSet->setPropertyValue( UNO_NAME_MISC_OBJ_NAME, aName );
|
xPropSet->setPropertyValue( UNO_NAME_MISC_OBJ_NAME, aName );
|
||||||
|
|
||||||
SvxOpenGLObject* pObj = dynamic_cast<SvxOpenGLObject*>(xTarget.get());
|
SvxOpenGLObject* pObj = dynamic_cast<SvxOpenGLObject*>(xTarget.get());
|
||||||
pObj->setRenderer(new OpenGLChartAdapter(xChart));
|
if (pObj)
|
||||||
|
pObj->setRenderer(new OpenGLChartAdapter(xChart));
|
||||||
|
|
||||||
xRet = getChartShape( xDrawPage );
|
xRet = getChartShape( xDrawPage );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user