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 )
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;
......
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