Bug 125633 - Fileopen DOCX: Formatted formula content opens left aligned instead of centered
Summary: Fileopen DOCX: Formatted formula content opens left aligned instead of centered
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Formula
  Show dependency treegraph
 
Reported: 2019-06-02 07:37 UTC by Army_bloodcore
Modified: 2022-09-05 10:53 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Misconverted formulas (14.19 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-06-02 08:50 UTC, Army_bloodcore
Details
comparison MSO 2010 and LibreOffice 6.4 Master (124.79 KB, image/png)
2019-06-11 11:18 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Army_bloodcore 2019-06-02 07:37:59 UTC
Description:
Formula in "normal text" format are always justified on a left border.

Steps to Reproduce:
1. Create complex equation in MS Office [like 2-level fraction (a + b)/(a + b + c + d) or a/(x + y + z)].
2. Select all formula.
3. Make all formula the "Normal text" formatting.
4. Make font like "Times new roman" or "Century gothic". 
5. Save it in *.docx format.
6. Open again in LibreOffice.

Actual Results:
All text will be displayed justified on the left border of fraction and I cannot change this

Expected Results:
All text will be displayed justified at the center of fraction, I can change position of the text.


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: ru
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 Dieter 2019-06-02 08:17:52 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it)
Comment 2 Army_bloodcore 2019-06-02 08:50:51 UTC
Created attachment 151846 [details]
Misconverted formulas

Hello! Here is attachment as you requested earlier. I hope this bug will be fixed as soon as possible
Comment 3 Dieter 2019-06-02 10:46:54 UTC
I confirm this with

Version: 6.3.0.0.beta1 (x64)
Build-ID: a187af327633f5f00363be5131bd21a13e0f1a7b
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; VCL: win; 
Gebietsschema: en-US (de_DE); UI-Sprache: de-DE
Calc: threaded

in comparison with MS Word 2016
Comment 4 Xisco Faulí 2019-06-11 11:18:07 UTC
Created attachment 152098 [details]
comparison MSO 2010 and LibreOffice 6.4 Master
Comment 5 Xisco Faulí 2019-06-11 11:18:39 UTC
Also reproduced in

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
Comment 6 Xisco Faulí 2019-06-11 11:22:29 UTC
Not reproduced in

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 7 Aron Budea 2019-06-12 22:14:48 UTC
Bibisected to the following range using repo bibisect-41max, commits failed to build in between:
https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=406dfa3240249d3611743ec2cee1b644a3c56291..3326a85ae6ad417b37deeee52fd9a806f42004ba

In this range three commits from Luboš Luňák are related to DOCX formulas, and only one seems to be relevant during import. Reverting it confirmed this commit is responsible:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=a75adeae36d96d507a774b91eb586e89f8035c3e
author		Luboš Luňák <l.lunak@suse.cz>	2013-03-26 16:07:52 +0100
committer	Luboš Luňák <l.lunak@suse.cz>	2013-03-26 17:19:58 +0100

m:nor and m:lit math docx tags lead to quoting
Comment 8 Army_bloodcore 2019-08-28 09:23:52 UTC Comment hidden (obsolete)
Comment 9 Dieter 2019-08-28 09:28:38 UTC Comment hidden (obsolete)
Comment 10 Army_bloodcore 2020-02-18 09:31:12 UTC Comment hidden (obsolete)
Comment 11 Dieter 2020-02-18 09:36:01 UTC Comment hidden (obsolete)
Comment 12 Army_bloodcore 2020-05-15 22:00:15 UTC Comment hidden (obsolete)
Comment 13 Army_bloodcore 2020-05-15 22:38:01 UTC Comment hidden (obsolete)
Comment 14 Army_bloodcore 2020-08-22 03:19:04 UTC Comment hidden (obsolete)
Comment 15 Xisco Faulí 2020-09-01 12:16:48 UTC
Still reproducible in

Version: 7.1.0.0.alpha0+
Build ID: e2f4e65a7b8024c00b049eebf0d87637efda7f24
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 16 QA Administrators 2022-09-02 03:38:32 UTC Comment hidden (obsolete)
Comment 17 Dieter 2022-09-05 10:53:23 UTC
Still present in

Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL