summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-02-24 19:44:43 +0000
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-28 02:54:23 +0100
commit1f2cf45c6f423c3ad1e12307e8f02a5014a3b913 (patch)
tree10912f862a0294072c0e864a296369f233da7ae5
parentc2c65d4f30cddb0528e8e9ef24e3d42a68ada25c (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.cxx5
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;