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

coverity#1158099 Unchecked dynamic_cast

Change-Id: I7c294042a3f4d7293fb6d93d33687eb265871e76
üst 934a7925
......@@ -148,10 +148,14 @@ sal_Int32 AxisHelper::getExplicitNumberFormatKeyForAxis(
{
bool bFormatSet = false;
//check whether we have a percent scale -> use percent format
ChartModel* pModel = NULL;
if( xNumberFormatsSupplier.is() )
{
ChartModel* pModel = dynamic_cast<ChartModel*>( xChartDoc.get() );
pModel = dynamic_cast<ChartModel*>( xChartDoc.get() );
assert(pModel);
}
if (pModel)
{
ScaleData aData = AxisHelper::getDateCheckedScale( xAxis, *pModel );
if( aData.AxisType==AxisType::PERCENT )
{
......
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