Created attachment 82447 [details]
DOCX containing textbox with default 'inset' values
When loading a DOCX into LO that has a text-box with default 'inset' values - LO exports it back to DOCX incorrectly.
the attached DOCX has a '<v:textbox>' node with the attribute 'inset="0"'.
'inset' has 'left','top','right','bottom' values.
when 'inset' is set like this 'inset="0"' it means that only the 'left' value is set to 0.
All the other values are defaulted.
The default values are:
(based on http://msdn.microsoft.com/en-us/library/documentformat.openxml.vml.textbox.aspx)
* left - 0.1in
* top - 0.05in
* right - 0.1in
* bottom - 0.05in
So in the example above - LO should write back to the file '0in, 0.05in, 0.1in, 0.05in' or '0'.
Instead LO writes '0,0,0,0' as the 'inset' values.
Steps to reproduce:
1. Load DOCX in LO
2. Save as NEW.DOCX
3. Load NEW.DOCX in Word
4. The inset of the text-box is wrong (set to 0,0,0,0)
The 'inset' attribute of 'textbox' is exported as '0,0,0,0'.
The 'inset' attribute of 'textbox' should be exported as '0' or as '0in, 0.05in, 0.1in, 0.05in'.
Operating System: All
Version: 22.214.171.124.alpha0+ Master
Adam Co committed a patch related to this issue.
It has been pushed to "master":
fdo#66929: fix for default textbox inset values
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Adam: does your commit mean this is fixed? If so, could you update the status of this bug? :)