xmloff/source/chart/SchXMLSeries2Context.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit f386cb407c5d780706e224aff9f80a79f36daf01 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Sep 8 10:36:06 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Sep 8 13:13:26 2020 +0200 cid#1186122 Big parameter passed by value Change-Id: Ifbc7129280a172407997c56aaab41c33433f99a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102230 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx index 58f8a6b28eb3..4bf122fa3b46 100644 --- a/xmloff/source/chart/SchXMLSeries2Context.cxx +++ b/xmloff/source/chart/SchXMLSeries2Context.cxx @@ -915,7 +915,7 @@ void SchXMLSeries2Context::setStylesToSeries( SeriesDefaultsAndStyles& rSeriesDe auto pItLabel = std::find_if(rSeriesDefaultsAndStyles.maSeriesStyleVector.begin(), rSeriesDefaultsAndStyles.maSeriesStyleVector.end(), - [seriesStyle](const DataRowPointStyle& rStyle) { + [&seriesStyle](const DataRowPointStyle& rStyle) { return rStyle.meType == DataRowPointStyle::DATA_LABEL_SERIES && rStyle.msStyleNameOfParent == seriesStyle.msStyleName; }); @@ -1179,7 +1179,7 @@ void SchXMLSeries2Context::setStylesToDataPoints( SeriesDefaultsAndStyles& rSeri auto pItLabel = std::find_if( rSeriesDefaultsAndStyles.maSeriesStyleVector.begin(), rSeriesDefaultsAndStyles.maSeriesStyleVector.end(), - [seriesStyle](const DataRowPointStyle& rStyle) { + [&seriesStyle](const DataRowPointStyle& rStyle) { return rStyle.meType == DataRowPointStyle::DATA_LABEL_POINT && rStyle.msStyleNameOfParent == seriesStyle.msStyleName; }); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits