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 ...
Status: VERIFIED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.0.2 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 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:


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

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]
MSWord2010.docx

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 5.1.0.2rc).

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
Confirmed.

Win 7 Pro 64-bit Version: 5.2.0.0.alpha0+
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:
Version: 5.4.0.0.alpha0+
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

--> RESOLVED WORKSFORME.
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
Version: 5.4.0.0.alpha0+
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