diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-24 19:44:43 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-02-28 02:54:23 +0100 |
commit | 1f2cf45c6f423c3ad1e12307e8f02a5014a3b913 (patch) | |
tree | 10912f862a0294072c0e864a296369f233da7ae5 | |
parent | c2c65d4f30cddb0528e8e9ef24e3d42a68ada25c (diff) |
fdo#40320: Correctly import data point formats in data series.
Signed-off-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-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; |