summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorOuyang Leyan <ouyang.leyan@hotmail.com>2020-11-21 15:42:19 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-23 07:31:06 +0100
commitfd5f3b212a38ec6ef35d2686ce5a7cc39cb7d377 (patch)
tree8b8a84dc95d9c05e9c0a3b8fe0d21dbaf51cbc81 /chart2
parentd767d0c968d243a891999df5685e177d8777fe7c (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>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/tp_DataSource.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx
index 6ac626957517..90eb974ca0d5 100644
--- a/chart2/source/controller/dialogs/tp_DataSource.cxx
+++ b/chart2/source/controller/dialogs/tp_DataSource.cxx
@@ -841,6 +841,9 @@ bool DataSourceTabPage::updateModelFromControl(const weld::Entry* pField)
aRange = xNewSeq->getSourceRangeRepresentation();
Reference< beans::XPropertySet > xProp( xNewSeq, uno::UNO_QUERY_THROW );
xProp->setPropertyValue( "Role" , uno::Any( OUString(lcl_aLabelRole) ));
+
+ //Labels should always include hidden cells, regardless of the setting chosen
+ xProp->setPropertyValue( "IncludeHiddenCells", uno::Any(true));
xLabeledSeq->setLabel( xNewSeq );
}
}