summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-02-24 14:44:43 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2012-02-24 14:45:44 -0500
commit67f37b1de7e64e3225844cfe38b9b1adace3fd85 (patch)
tree31222afd36e01b82e26524ec933b85c2bb57a10c
parent3dee9ff1c938cbc2272772c1c6df6f11ef5bab0e (diff)
fdo#40320: Correctly import data point formats in data series.
-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 6caf627db6af..df6a14d53512 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;