coverity#1209592 Unchecked dynamic_cast

Change-Id: Id9ac29ec88a98e626a1ecfb364e474b2a11a8004
This commit is contained in:
Caolán McNamara
2014-05-07 11:35:48 +01:00
parent 439d6a07f7
commit d348f39883

View File

@@ -154,7 +154,8 @@ uno::Reference< drawing::XShapes > OpenglShapeFactory::getOrCreateChartRootShape
xPropSet->setPropertyValue( UNO_NAME_MISC_OBJ_NAME, aName );
SvxOpenGLObject* pObj = dynamic_cast<SvxOpenGLObject*>(xTarget.get());
pObj->setRenderer(new OpenGLChartAdapter(xChart));
if (pObj)
pObj->setRenderer(new OpenGLChartAdapter(xChart));
xRet = getChartShape( xDrawPage );
}