summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-02-24 20:42:09 +0000
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-28 02:54:23 +0100
commit0c78ff5de2ac1e10e68876ef586c0f2d9d5d626a (patch)
tree32574f0c870daa1fcb603f3cb5eba8e61f33d1d5 /sc
parent1f2cf45c6f423c3ad1e12307e8f02a5014a3b913 (diff)
fdo#40320: Insert only a placeholder since the caller relies on this behavior.
Signed-off-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-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 7d5f7d99c7a1..e83b8d84972c 100644
--- a/sc/source/filter/excel/xichart.cxx
+++ b/sc/source/filter/excel/xichart.cxx
@@ -2135,8 +2135,9 @@ XclImpChTextRef* XclImpChSeries::GetDataLabelRef( sal_uInt16 nPointIdx )
XclImpChTextMap::iterator itr = maLabels.lower_bound(nPointIdx);
if (itr == maLabels.end() || maLabels.key_comp()(nPointIdx, itr->first))
{
- // No object exists at this point index position. Insert a new one.
- XclImpChTextRef p(new XclImpChText(GetChRoot()));
+ // No object exists at this point index position. Insert a new
+ // placeholder.
+ XclImpChTextRef p;
itr = maLabels.insert(itr, XclImpChTextMap::value_type(nPointIdx, p));
}
return &itr->second;