https://bugs.documentfoundation.org/show_bug.cgi?id=170438
Bug ID: 170438
Summary: FILESAVE DOCX: corrupt document reported by MS Word if
SDT dropdown displayText is empty
Product: LibreOffice
Version: 4.3 all versions
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: bisected, filter:docx
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Blocks: 104840
Created attachment 205136
--> https://bugs.documentfoundation.org/attachment.cgi?id=205136&action=edit
forum-mso-en4-401306.docx: example document
Although a <w:listItem w:value=""/> is OK, a <w:listItem w:displayText=""/> is
considered to be a corrupt document.
Steps to reproduce:
-open forum-mso-en4-401306.docx in LO and resave it
-now try to open in Microsoft Word
In the original document, this is a blockSDT containing the table cell.
<w:dropDownList>
<w:listItem w:displayText="Choose activity type" w:value=""/>
<w:listItem w:displayText="Ops" w:value="37982124-..."/>
<w:listItem w:displayText="Train" w:value="E1752CF3-..."/>
</w:dropDownList>
In this case, we are not currently importing the SDT as a content control, but
rather as a native SwXTextField SwServiceType::FieldTypeDropdown. These
apparently don't have a separate "display" and "value", so only the array of
values are being passed as a list - where the first item is an empty value.
(However, since the 'default text' is 'Choose activity type', and that was not
one of the list items, we added it as a fourth item.)
Referenced Bugs:
https://bugs.documentfoundation.org/show_bug.cgi?id=104840
[Bug 104840] [META] Saved DOC files that MS Word can't open
--
You are receiving this mail because:
You are the assignee for the bug.