coverity#1158125 Unchecked dynamic_cast

Change-Id: Id560c9d5941ba679b92aaa2b2db0fb34a23d7a5f
This commit is contained in:
Caolán McNamara
2014-02-07 11:34:12 +00:00
parent 6c45566ece
commit 33dc343268

View File

@@ -350,7 +350,8 @@ bool SeriesOptionsItemConverter::ApplySpecialItem( sal_uInt16 nWhichId, const Sf
if (bIncludeHiddenCells != m_bIncludeHiddenCells)
{
ChartModel* pModel = dynamic_cast<ChartModel*>(m_xChartModel.get());
bChanged = ChartModelHelper::setIncludeHiddenCells( bIncludeHiddenCells, *pModel );
if (pModel)
bChanged = ChartModelHelper::setIncludeHiddenCells( bIncludeHiddenCells, *pModel );
}
}
}