summaryrefslogtreecommitdiff
path: root/xmloff/source
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 /xmloff/source
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 'xmloff/source')
-rw-r--r--xmloff/source/chart/SchXMLSeries2Context.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx
index 434018276e93..992a03d64113 100644
--- a/xmloff/source/chart/SchXMLSeries2Context.cxx
+++ b/xmloff/source/chart/SchXMLSeries2Context.cxx
@@ -480,6 +480,14 @@ void SchXMLSeries2Context::StartElement( const uno::Reference< xml::sax::XAttrib
xSequenceLabel.set(SchXMLTools::CreateDataSequenceWithoutConvert(aSeriesLabelString, mxNewDoc));
}
}
+
+ //Labels should always include hidden cells
+ Reference<beans::XPropertySet> xSeqLabelProp(xSequenceLabel, uno::UNO_QUERY);
+ if (xSeqLabelProp.is() && xSeqLabelProp->getPropertySetInfo()->hasPropertyByName("IncludeHiddenCells"))
+ {
+ xSeqLabelProp->setPropertyValue( "IncludeHiddenCells", uno::Any(true));
+ }
+
xLabeledSeq->setLabel(xSequenceLabel);
// Note: Even if we have no label, we have to register the label