Bug 97163 - Writer: Import .docx: wrong alignment or padding with small formulas in text lines
Summary: Writer: Import .docx: wrong alignment or padding with small formulas in text ...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) rc
Hardware: All All
: medium normal
Assignee: Not Assigned
: 97520 (view as bug list)
Depends on:
Blocks: DOCX-Formula
  Show dependency treegraph
Reported: 2016-01-16 03:40 UTC by Rolle
Modified: 2017-01-27 16:30 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

MSWord2010.docx (27.72 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-01-16 03:40 UTC, Rolle
Comparison Word/Writer (245.53 KB, image/png)
2016-01-16 03:46 UTC, Rolle

Note You need to log in before you can comment on or make changes to this bug.
Description Rolle 2016-01-16 03:40:27 UTC
Created attachment 121968 [details]

When I import a docx document with small formulas (1-liner), which are included in the text lines, the alignment or the padding aren't optimal. So the spaces between the neighbor text lines differs.
A better solution is to keep the surrounding padding of formulas (1-liner) very small, so that it fit completely in a text line height without introduction of new space pixel to the upper and lower neighbor text line.
And a second thing: The 1 liner formulas should on the same baseline of a text line as the text. In the current situation the formulas seems too high positioned over the baseline.

As attachment is a MS Word 2010 docx document (3.Formula.IncorrectAlignment.MSWord2010.docx) with an example document. To show the differences between MS Word 2010 and LibreOffice 5.1.02rc there is the attachment "3.Formula.IncorrectAlignment.png" (left side: MS Word 2010; right side: LibreOffice

And see how great the page is rendered with MS Word and how bad the LibreOffice output is.
Comment 1 Rolle 2016-01-16 03:46:27 UTC
Created attachment 121969 [details]
Comparison Word/Writer

The wrong name "3.Formula.IncorrectAlignment.MSWord2010.docx" is the "MSWord2010.docx"

The wrong name "3.Formula.IncorrectAlignment.png" is the "Comparison Word/Writer"
Comment 2 Buovjaga 2016-01-21 14:16:31 UTC

Win 7 Pro 64-bit Version:
Build ID: 6b65a0e83c4798f117be61af91dbaebdc85e94b7
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-01-21_03:41:08
Locale: fi-FI (fi_FI)
Comment 3 raal 2016-02-03 09:48:05 UTC
*** Bug 97520 has been marked as a duplicate of this bug. ***
Comment 4 Telesto 2017-01-26 19:50:22 UTC
No repro with:
Build ID: 79497f458727a0dea983847fe9d3873bf9c2e972
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-01-24_03:10:09
Locale: nl-NL (nl_NL); Calc: CL

Feel free to revert status if you still reproduce the bug
Comment 5 Buovjaga 2017-01-27 16:30:47 UTC
I confirm it works now.

Arch Linux 64-bit, KDE Plasma 5
Build ID: 63fd4c97118a943c84ba5a666cf8c9cc54b511c7
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on January 22th 2016