Bug 149097

Summary: [DOCX] Importing Word file with rotated equations cause them to be misplaced in Writer
Product: LibreOffice Reporter: Rafael Lima <rafael.palma.lima>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: aron.budea, telesto
Priority: medium Keywords: bibisected, bisected
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104526    
Attachments: Sample DOCX file
Screenshots showing the problem

Description Rafael Lima 2022-05-15 12:44:43 UTC
Created attachment 180127 [details]
Sample DOCX file

Open the attached DOCX file in MS Word. It has a table with some equations in it. In the first column the equations are rotated because the text orientation is vertical.

However, when this file is opened in LO Writer, the equation gets misplaced and becomes invisible (see ODG file with screenshots detailing the bug). Resizing the column  has no effect on the formula visibility.

It seems the formula object is not being rotated either, because copying it and pasting it somewhere else in the text results in a horizontally-oriented object.

System info:
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 4351a6ca782e1d2081ba819338ebbf6a2d2ee2b2
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL
Comment 1 Rafael Lima 2022-05-15 12:45:47 UTC
Created attachment 180128 [details]
Screenshots showing the problem

This ODG file compares how the file is rendered in Word and in Writer.
Comment 2 Telesto 2022-05-16 07:11:07 UTC
Also in
Version: 7.1.8.0.0+ (x64) / LibreOffice Community
Build ID: a94b58277c7aeaa83ce14347cd0b8f7137969d03
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

and in
Versie: 6.4.0.2 (x86)
Build ID: 08d19fecdc7a2298d051e19cfdb7c35544855fc3
CPU-threads: 4; Besturingssysteem: Windows 6.3 Build 9600; UI-render: GL; VCL: win; 
Locale: nl-NL (nl_NL); UI-taal: nl-NL
Calc: CL

still ok with
Version: 6.1.6.3
Build ID: 5896ab1714085361c45cf540f76f60673dd96a72
CPU threads: 4; OS: Windows 6.3; UI render: default; 
Locale: nl-NL (nl_NL); Calc: CL
Comment 3 Aron Budea 2023-03-20 04:38:57 UTC
This was never really okay, because the formula was horizontal and not rotated even when it was shown (or even worse in older versions).

Nevertheless, it disappeared with the following commit:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=8fdbda18b593e7014e44a0fd590bbf98d83258b7
author		Miklos Vajna <vmiklos@collabora.com>	2019-02-15 14:06:15 +0100
committer	Miklos Vajna <vmiklos@collabora.com>	2019-02-15 15:05:07 +0100

sw btlr writing mode: implement DOCX filter