summaryrefslogtreecommitdiffstats
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorOuyang Leyan <ouyang.leyan@hotmail.com>2022-01-16 12:25:58 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-02-28 09:27:07 +0100
commit7c5cfe54357e4e8d08b4696e80741097d3335dcb (patch)
tree1fe07af7d1a625d65cd4e95a81c4899f3119f61e /chart2/source/tools
parentRemove redundant _test from i18npool/CppunitTest* (diff)
downloadcore-7c5cfe54357e4e8d08b4696e80741097d3335dcb.tar.gz
core-7c5cfe54357e4e8d08b4696e80741097d3335dcb.zip
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/source/tools')
-rw-r--r--chart2/source/tools/DataSeriesHelper.cxx2
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;
}