sc/source/filter/excel/xichart.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 89e836c64a885b676673af33bf98e5ef97869daf Author: Kohei Yoshida <kohei.yosh...@suse.com> Date: Fri Feb 24 15:42:09 2012 -0500 fdo#40320: Insert only a placeholder since the caller relies on this behavior. diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx index df6a14d..a483064 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; _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits