diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-24 20:42:09 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-02-28 02:54:23 +0100 |
commit | 0c78ff5de2ac1e10e68876ef586c0f2d9d5d626a (patch) | |
tree | 32574f0c870daa1fcb603f3cb5eba8e61f33d1d5 /sc | |
parent | 1f2cf45c6f423c3ad1e12307e8f02a5014a3b913 (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.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 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; |