summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorOuyang Leyan <ouyang.leyan@hotmail.com>2020-11-21 15:42:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-11-23 15:38:14 +0100
commitb030440833e39bc15a72a2db4b2e782b882e0baa (patch)
treee7f7fa942c5794e4ba0b0f6ba9cc4c0638ac2df6 /sc
parent42de1aae72850a11a826d4e13d8ee94f99aaa64a (diff)
tdf#134059 Always include hidden cells in chart series label
Change-Id: I92ff60b26af713a49fefd8b2ce8042f4e8e4d179 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106317 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit fd5f3b212a38ec6ef35d2686ce5a7cc39cb7d377) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106240 Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index ffbcba6c234f..004729176c2e 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -1031,7 +1031,8 @@ uno::Reference< chart2::data::XLabeledDataSequence > lcl_createLabeledDataSequen
}
if ( bHasLabel )
{
- uno::Reference< chart2::data::XDataSequence > xLabelSeq( new ScChart2DataSequence( pDoc, std::move(aLabelTokens), bIncludeHiddenCells ) );
+ //Labels should always include hidden cells, regardless of the bIncludeHiddenCells setting
+ uno::Reference< chart2::data::XDataSequence > xLabelSeq( new ScChart2DataSequence( pDoc, std::move(aLabelTokens), true ) );
xResult->setLabel( xLabelSeq );
}
}