https://bugs.documentfoundation.org/show_bug.cgi?id=153183
Bug ID: 153183
Summary: FILESAVE DOCX writing attribute "ID" in v:shape
produces invalid document
Product: LibreOffice
Version: 7.6.0.0 alpha0+ Master
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Keywords: implementationError
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 184872
--> https://bugs.documentfoundation.org/attachment.cgi?id=184872&action=edit
Fontwork of type "text plain" which is named by user
Take attached document and put it to
oox/qa/unit/data/namedShape.odt"
Add the test
CPPUNIT_TEST_FIXTURE(Test, testShapeID)
{
loadFromURL(u"namedShape.odt");
save("Office Open XML Text");
}
to oox/qa/unit/export.cxx
Run the test, e.g. by
make CppunitTest_oox_export CPPUNIT_TEST_NAME="testShapeID"
The test fails with
validation error in OOXML export: Errors: 1
If you step into the "save" method you will see in the output window:
INFO - Validating part "/word/document.xml" using schema "29500T/wml.xsd" ...
ERROR - (word/document.xml:2 col:1,724) cvc-complex-type.3.2.2: Attribute
'ID' is not allowed to appear in element 'v:shape'.
--
You are receiving this mail because:
You are the assignee for the bug.