Bug 148772 - Text in Word 2007 DOCX table shown with a vertical layout instead of an horizontal layout (OK if resaved in MSO)
Summary: Text in Word 2007 DOCX table shown with a vertical layout instead of an horiz...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: All All
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, filter:docx, regression
Depends on:
Blocks: DOCX-Tables
  Show dependency treegraph
 
Reported: 2022-04-25 13:52 UTC by Rom M.
Modified: 2022-05-22 09:20 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Microsoft Office Word document (47.68 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-04-25 13:54 UTC, Rom M.
Details
DOCX compared (94.17 KB, image/webp)
2022-04-26 13:01 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rom M. 2022-04-25 13:52:54 UTC
Description:
Microsoft Office Word Document opened in LibreOffice Writer.
Text in table page 2 is shown vertically instead of horizontally.

Steps to Reproduce:
1. Open the document with LibreOffice writer
2. See the page number 2

Actual Results:
The text layout in the table is vertical

Expected Results:
The text layout in the table should be horizontal


Reproducible: Always


User Profile Reset: Yes



Additional Info:
LibreOffice should show the table content as Microsoft Office does.
Comment 1 Rom M. 2022-04-25 13:54:46 UTC
Created attachment 179759 [details]
Microsoft Office Word document
Comment 2 Timur 2022-04-26 10:28:09 UTC
I confirm for attached DOCX in LO 5.2 and 7.4+. 
Table looked better in LO 5.0, can be called regression, in 5.1. 
But, if resaved in MSO as New or even Compatible, table is seen OK, indicating this is not a regular DOCX but generated or edited with improper software. 
I set New as Low.
Comment 3 Rom M. 2022-04-26 12:39:36 UTC
Thank you for the quick reply.
I tested LibreOffice 5.0.6.3 and I did not see any differences. I would be interested to know which version shows the table correctly if it exists.
Thanks,
Comment 4 Timur 2022-04-26 13:01:09 UTC
Created attachment 179786 [details]
DOCX compared

Opens table in 5.0.0 and already wrong in 5.0.6.
My or 5.0 Linux repo in general is not updated, so no bibisect for me. 

Do not set Needinfo, that's for others asking you as a reporter.
Comment 5 Rom M. 2022-04-28 11:58:33 UTC
Hi,

I did some tests and the table looks better until version 5.0.2.2.
The regression begins at version 5.0.3.1.

Thanks
Comment 7 Timur 2022-04-28 15:21:17 UTC
Previous change in the same repo was for the 1st cell "Version" in https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=240d1f289c5788845cd4336f223f2c4bc8975a99..4f918cd5daed963287805da761e6983a392ae050

Miklos, please see if your commits 226df017ee949429657dea20e2d21e2775e4d162 and f4badd9a485f32f787d78431ed673e2932973887 caused this. 
(I suspect this because the later has a code "bad" hidden inside).
Comment 8 Miklos Vajna 2022-04-29 06:52:41 UTC
Just browsing the commit list does not ring a bell for me, so this would need bisecting I fear.
Comment 9 Timur 2022-04-29 11:04:27 UTC Comment hidden (obsolete)
Comment 10 Xisco Faulí 2022-04-29 11:35:23 UTC
(In reply to Timur from comment #9)
> Xisco, can you please build without those commits to check? 
> Can you explain why my 50max repo is not updated to contain those changes?
> I used dbgutil 5.1 repo.
 226df017ee949429657dea20e2d21e2775e4d162 is a cosmetic change, the second is about indentation. The code has changed so much the original code is no longer, but at first glance, they don't look related
Comment 11 Xisco Faulí 2022-04-29 11:38:06 UTC
(In reply to Rom M. from comment #5)
> Hi,
> 
> I did some tests and the table looks better until version 5.0.2.2.
> The regression begins at version 5.0.3.1.
> 
> Thanks

I do confirm this.
List of changes there: https://wiki.documentfoundation.org/Releases/5.0.3/RC1
Comment 12 Xisco Faulí 2022-04-29 11:45:52 UTC Comment hidden (obsolete)
Comment 13 Xisco Faulí 2022-04-29 11:50:15 UTC
(In reply to Xisco Faulí from comment #12)
> The issue is also reproducible in 4.4.7.2 but not in 4.4.7.1 ->
> https://wiki.documentfoundation.org/Releases/4.4.7/RC2

Sorry, not reproducible in libreoffice-4.4.6.3
Comment 14 Timur 2022-04-29 12:37:08 UTC
If you are saying that's in https://wiki.documentfoundation.org/Releases/4.4.7/RC1 then only DOCX is the one I already found as f4badd9a485f32f787d78431ed673e2932973887 from bug 92454.