Kaydet (Commit) 89e836c6 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#40320: Insert only a placeholder since the caller relies on this behavior.

üst 67f37b1d
...@@ -2135,8 +2135,9 @@ XclImpChTextRef* XclImpChSeries::GetDataLabelRef( sal_uInt16 nPointIdx ) ...@@ -2135,8 +2135,9 @@ XclImpChTextRef* XclImpChSeries::GetDataLabelRef( sal_uInt16 nPointIdx )
XclImpChTextMap::iterator itr = maLabels.lower_bound(nPointIdx); XclImpChTextMap::iterator itr = maLabels.lower_bound(nPointIdx);
if (itr == maLabels.end() || maLabels.key_comp()(nPointIdx, itr->first)) if (itr == maLabels.end() || maLabels.key_comp()(nPointIdx, itr->first))
{ {
// No object exists at this point index position. Insert a new one. // No object exists at this point index position. Insert a new
XclImpChTextRef p(new XclImpChText(GetChRoot())); // placeholder.
XclImpChTextRef p;
itr = maLabels.insert(itr, XclImpChTextMap::value_type(nPointIdx, p)); itr = maLabels.insert(itr, XclImpChTextMap::value_type(nPointIdx, p));
} }
return &itr->second; return &itr->second;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment