Kaydet (Commit) d2d00424 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1158151 Unchecked dynamic_cast

Change-Id: I951694fddb12ebf04316063ef1b06c6f2dcb45e9
üst 6e57eb3a
......@@ -158,8 +158,8 @@ void SAL_CALL ChartController::executeDispatch_PositionAndSize()
bool bChanged = false;
if ( eObjectType == OBJECTTYPE_LEGEND )
{
ChartModel* pModel = dynamic_cast<ChartModel*>(getModel().get());
bChanged = DiagramHelper::switchDiagramPositioningToExcludingPositioning( *pModel, false , true );
ChartModel& rModel = dynamic_cast<ChartModel&>(*getModel().get());
bChanged = DiagramHelper::switchDiagramPositioningToExcludingPositioning(rModel, false , true);
}
bool bMoved = PositionAndSizeHelper::moveObject( m_aSelection.getSelectedCID(), getModel()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment