901d9421e1
L3 patches OBS-URL: https://build.opensuse.org/request/show/583042 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=607
30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
|
|
index 128a166c..4e789f9 100644
|
|
--- a/oox/source/export/chartexport.cxx
|
|
+++ b/oox/source/export/chartexport.cxx
|
|
@@ -2930,6 +2930,24 @@
|
|
FSHelperPtr pFS = GetFS();
|
|
pFS->startElement(FSNS(XML_c, XML_dLbls), FSEND);
|
|
|
|
+ bool bLinkedNumFmt = true;
|
|
+ if (GetProperty(xPropSet, "LinkNumberFormatToSource"))
|
|
+ mAny >>= bLinkedNumFmt;
|
|
+
|
|
+ if (GetProperty(xPropSet, "NumberFormat"))
|
|
+ {
|
|
+ sal_Int32 nKey = 0;
|
|
+ mAny >>= nKey;
|
|
+
|
|
+ OUString aNumberFormatString = getNumberFormatCode(nKey);
|
|
+ OString sNumberFormatString = OUStringToOString(aNumberFormatString, RTL_TEXTENCODING_UTF8);
|
|
+
|
|
+ pFS->singleElement(FSNS(XML_c, XML_numFmt),
|
|
+ XML_formatCode, sNumberFormatString.getStr(),
|
|
+ XML_sourceLinked, bLinkedNumFmt ? "1" : "0",
|
|
+ FSEND);
|
|
+ }
|
|
+
|
|
uno::Sequence<sal_Int32> aAttrLabelIndices;
|
|
xPropSet->getPropertyValue("AttributedDataPoints") >>= aAttrLabelIndices;
|
|
|