Created attachment 125311 [details] The docx file in question I have a letter template from my university administration in docx format, which looks slightly different in MSOffice 2010 and LibreOffice 5.1.3. In particular, LibreOffice gets the vertical spacing wrong between the 'Adressfeld' and the 'Betreffzeile'. Example documents are attached. The document actually shows four different problems; I will open separate bugs for the other three. Thanks for your consideration.
Created attachment 125312 [details] The document as shown by MSOffice 2010
Created attachment 125313 [details] The document as shown by LibreOffice 5.1.3
Confirmed. Arch Linux 64-bit, KDE Plasma 5 Version: 5.3.0.0.alpha0+ Build ID: 60041cb237ea73c2c1885dd6afd99d88780c2dfc CPU Threads: 8; OS Version: Linux 4.5; UI Render: default; Locale: fi-FI (fi_FI.UTF-8) Built on May 26th 2016
Reproduce in LibreOfficeDev 5.3.0.0.alpha1 f4ca1573fcf445164c068c1046ab5d084e1b005f
The wrong spacing in the LO render is caused by the textbox "Adressfeld". In MSO it has a hight of a few lines and in LO it is only one line in height. Although, the width of the box is right. So there is something wrong in importing or shrinking of this textbox.
Created attachment 132728 [details] minimal example containing only the problematic textbox I uploaded a minimal example which contains a single textbox. In LO the box is shrinked, in MSO it is a few lines in height.
Vasily Melenchuk committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=d5b19100ca4d3670d1b5367e8000739af60a6892 tdf#100075 DOCX frame height rule updated It will be available in 6.0.0. 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: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
I confirm that the problem is fixed in git master. Will this be backported to 5.4?
Vasily: do you want to backport to 5.4? I guess that would realistically be 5.4.1, then.
Vasily Melenchuk committed a patch related to this issue. It has been pushed to "libreoffice-5-4": http://cgit.freedesktop.org/libreoffice/core/commit/?id=94c533bc59a8fe50b3d44c3200646f99269faab5&h=libreoffice-5-4 tdf#100075 DOCX frame height rule updated It will be available in 5.4.0.2. 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: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.