coverity#1158115 Unchecked dynamic_cast
Change-Id: Ic37180d32f1308a5065f547584046e31dae88ea0
This commit is contained in:
@@ -950,8 +950,8 @@ void ChartController::impl_switchDiagramPositioningToExcludingPositioning()
|
||||
ActionDescriptionProvider::POS_SIZE,
|
||||
ObjectNameProvider::getName( OBJECTTYPE_DIAGRAM)),
|
||||
m_xUndoManager );
|
||||
ChartModel* pModel = dynamic_cast<ChartModel*>(m_aModel->getModel().get());
|
||||
if( DiagramHelper::switchDiagramPositioningToExcludingPositioning( *pModel, true, true ) )
|
||||
ChartModel& rModel = dynamic_cast<ChartModel&>(*m_aModel->getModel().get());
|
||||
if (DiagramHelper::switchDiagramPositioningToExcludingPositioning(rModel, true, true))
|
||||
aUndoGuard.commit();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user