xmloff/source/text/XMLSectionFootnoteConfigImport.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit bbec710bd25fc5da27636cde73fe4ab23c76904f Author: Louis Possoz <louis.pos...@quelfutur.org> AuthorDate: Sat Apr 30 06:39:38 2022 +0100 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Fri May 27 21:11:27 2022 +0200 tdf#145178 Formats in section Foot/Endnotes not read from saved files Imported, 'num-suffix' & 'num-format' properties generate debug warnings: warn:xmloff:10220:10220:xmloff/source/text/ XMLSectionFootnoteConfigImport.cxx:123: unknown attribute urn:oasis :names:tc:opendocument:xmlns:style:1.0 style:num-suffix value=]] warn:xmloff:10220:10220:xmloff/source/text/ XMLSectionFootnoteConfigImport.cxx:123: unknown attribute urn:oasis :names:tc:opendocument:xmlns:style:1.0 style:num-format value=One The faulty code is within XMLSectionFootnoteConfigImport::startFastElement() The namespace for these two properties must be set to 'STYLE' (it is wrongly set to 'TEXT') Change-Id: I923f12e19ed15779c67b2159d88d80a2ccb04e17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133605 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> Tested-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/xmloff/source/text/XMLSectionFootnoteConfigImport.cxx b/xmloff/source/text/XMLSectionFootnoteConfigImport.cxx index fcdbf2221b5a..ef408c0c13c8 100644 --- a/xmloff/source/text/XMLSectionFootnoteConfigImport.cxx +++ b/xmloff/source/text/XMLSectionFootnoteConfigImport.cxx @@ -101,13 +101,13 @@ void XMLSectionFootnoteConfigImport::startFastElement( bNumOwn = true; break; } - case XML_ELEMENT(TEXT, XML_NUM_SUFFIX): + case XML_ELEMENT(STYLE, XML_NUM_SUFFIX): { sNumSuffix = aIter.toString(); bNumOwn = true; break; } - case XML_ELEMENT(TEXT, XML_NUM_FORMAT): + case XML_ELEMENT(STYLE, XML_NUM_FORMAT): { sNumFormat = aIter.toString(); bNumOwn = true;