Kaydet (Commit) 67f37b1d authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#40320: Correctly import data point formats in data series.

üst 3dee9ff1
......@@ -2118,8 +2118,9 @@ XclImpChDataFormatRef* XclImpChSeries::GetDataFormatRef( sal_uInt16 nPointIdx )
XclImpChDataFormatMap::iterator itr = maPointFmts.lower_bound(nPointIdx);
if (itr == maPointFmts.end() || maPointFmts.key_comp()(nPointIdx, itr->first))
{
// No object exists at this point index position. Insert a new one.
XclImpChDataFormatRef p(new XclImpChDataFormat(GetChRoot()));
// No object exists at this point index position. Insert a new
// placeholder.
XclImpChDataFormatRef p;
itr = maPointFmts.insert(itr, XclImpChDataFormatMap::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