diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-03-01 20:44:18 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-03-01 20:44:18 -0500 |
commit | 8323e331022f8d1e0bc60e7e6af9529a8a5d8948 (patch) | |
tree | b432f3bb09066a435c599ed1a6536d1e15ddc007 /sc/source/filter/excel/xichart.cxx | |
parent | 422c348776b2efb2c41d8f037b626653b8596f03 (diff) |
These ones are best converted to std::map.
Diffstat (limited to 'sc/source/filter/excel/xichart.cxx')
-rw-r--r-- | sc/source/filter/excel/xichart.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx index 8c514efc7932..6ecda32a2a09 100644 --- a/sc/source/filter/excel/xichart.cxx +++ b/sc/source/filter/excel/xichart.cxx @@ -1805,7 +1805,11 @@ void XclImpChSeries::FinalizeDataFormats() if( mxSeriesFmt ) { // #i83100# set text label format, e.g. for trend line equations - mxSeriesFmt->SetDataLabel( maLabels.get( EXC_CHDATAFORMAT_ALLPOINTS ) ); + XclImpChTextRef xLabel; + XclImpChTextMap::iterator itr = maLabels.find(EXC_CHDATAFORMAT_ALLPOINTS); + if (itr != maLabels.end()) + xLabel = itr->second; + mxSeriesFmt->SetDataLabel(xLabel); // create missing automatic formats mxSeriesFmt->UpdateTrendLineFormat(); } |