diff options
author | Ouyang Leyan <ouyang.leyan@hotmail.com> | 2022-01-16 12:25:58 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-28 09:27:07 +0100 |
commit | 7c5cfe54357e4e8d08b4696e80741097d3335dcb (patch) | |
tree | 1fe07af7d1a625d65cd4e95a81c4899f3119f61e /chart2 | |
parent | 637e7ddf1e3091191b6835c7f66c71f014dfaa19 (diff) |
tdf#146463 Apply data series filter to the chart legend
Consider a data series as hidden if there is no unfiltered value, do not
consider data labels. It solves a regression introduced when working on
tdf#134059.
Change-Id: I6072bf469137d70e0aa353ffbeb0d0a1216ffa5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128476
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/tools/DataSeriesHelper.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/chart2/source/tools/DataSeriesHelper.cxx b/chart2/source/tools/DataSeriesHelper.cxx index af86b98add8f..5ae4d3e0ab4f 100644 --- a/chart2/source/tools/DataSeriesHelper.cxx +++ b/chart2/source/tools/DataSeriesHelper.cxx @@ -703,8 +703,6 @@ bool hasUnhiddenData( const uno::Reference< chart2::XDataSeries >& xSeries ) continue; if( lcl_SequenceHasUnhiddenData( aDataSequences[nN]->getValues() ) ) return true; - if( lcl_SequenceHasUnhiddenData( aDataSequences[nN]->getLabel() ) ) - return true; } return false; } |