diff options
-rw-r--r-- | sc/source/filter/excel/xichart.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx index 8cf884d2ef00..7d5f7d99c7a1 100644 --- a/sc/source/filter/excel/xichart.cxx +++ b/sc/source/filter/excel/xichart.cxx @@ -2118,8 +2118,9 @@ XclImpChDataFormatRef* XclImpChSeries::GetDataFormatRef( sal_uInt16 nPointIdx ) XclImpChDataFormatMap::iterator itr = maPointFmts.lower_bound(nPointIdx); if (itr == maPointFmts.end() || maPointFmts.key_comp()(nPointIdx, itr->first)) { - // No object exists at this point index position. Insert a new one. - XclImpChDataFormatRef p(new XclImpChDataFormat(GetChRoot())); + // No object exists at this point index position. Insert a new + // placeholder. + XclImpChDataFormatRef p; itr = maPointFmts.insert(itr, XclImpChDataFormatMap::value_type(nPointIdx, p)); } return &itr->second; |