Bug 89850 - Strange behavior in cells with vertical text when table is generated by MSO
Summary: Strange behavior in cells with vertical text when table is generated by MSO
Status: RESOLVED DUPLICATE of bug 34436
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Tables
  Show dependency treegraph
 
Reported: 2015-03-05 16:44 UTC by Consorci Sanitari de l'Alt Penedès
Modified: 2018-06-11 15:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
DOCX with table generated by MSO Word (13.31 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-03-05 16:44 UTC, Consorci Sanitari de l'Alt Penedès
Details
PDF with expected results (84.52 KB, application/pdf)
2015-03-05 16:45 UTC, Consorci Sanitari de l'Alt Penedès
Details
PDF with wrong results (15.02 KB, application/pdf)
2015-03-06 08:29 UTC, Consorci Sanitari de l'Alt Penedès
Details
MS Word 2010 screenshot (Original document) (7.34 KB, image/png)
2015-10-29 12:51 UTC, Sven Ollino
Details
LO5 Writer screenshot (4.90 KB, image/png)
2015-10-29 12:51 UTC, Sven Ollino
Details
Document with vertical text at the bottom left corner. (49.00 KB, application/msword)
2015-10-29 12:53 UTC, Sven Ollino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Consorci Sanitari de l'Alt Penedès 2015-03-05 16:44:54 UTC
Created attachment 113918 [details]
DOCX with table generated by MSO Word

DOCX generated by MS Word 2010.
- The first Column has vertical text. 
- The first cell of the first row has some line breaks.
- The first cell of the second row does not have line breaks.

If we create a simple table in MSO and set some cells to vertical text, when editing the document in LibreOffice the behavior is quite strange:
- If you press Enter at the end of the cell (the one with vertical text), the text does not jump to the next line, it moves to the beginning of the text or a position that is not correct.
- With a vertical text cell selected, go to table properties: the text orientation is set to horizontal, yet the text displays vertically. If you change the orientation to vertical, the orientation changes to horizontal. In this condition, alignment and vertical alignment also behaves strangely.

Example DOCX attached.

Environment: 
LibreOffice 4.4.0.3
OS: Windows 7 64bit (Spanish)
Comment 1 Consorci Sanitari de l'Alt Penedès 2015-03-05 16:45:29 UTC
Created attachment 113919 [details]
PDF with expected results
Comment 2 Joel Madero 2015-03-06 03:54:49 UTC Comment hidden (obsolete)
Comment 3 Consorci Sanitari de l'Alt Penedès 2015-03-06 08:29:12 UTC
Created attachment 113928 [details]
PDF with wrong results
Comment 4 Consorci Sanitari de l'Alt Penedès 2015-03-06 08:29:34 UTC Comment hidden (obsolete)
Comment 5 Consorci Sanitari de l'Alt Penedès 2015-03-06 08:30:49 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2015-03-20 17:31:50 UTC
On Linux, "Row 2 test header" is wrapping correctly.
Otherwise reproduced.

I wonder, if this is related to bug 75456 somehow. Not sure enough to close as dupe (text box vs. table cell).

Win 7 Pro 64-bit, LibO Version: 4.4.1.2
Build ID: 45e2de17089c24a1fa810c8f975a7171ba4cd432
Locale: fi_FI

Version: 4.5.0.0.alpha0+
Build ID: 181feb38d95e25980b96c2f6802cc906410abb13
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2015-03-19_23:38:28
Locale: fi_FI

Ubuntu 14.10 64-bit 
Version: 4.4.1.2
Build ID: 40m0(Build:2)
Locale: en_US

Version 3.6.7.2 (Build ID: e183d5b)
Comment 7 Sven Ollino 2015-10-29 12:51:17 UTC
Created attachment 120073 [details]
MS Word 2010 screenshot (Original document)
Comment 8 Sven Ollino 2015-10-29 12:51:56 UTC
Created attachment 120074 [details]
LO5 Writer screenshot
Comment 9 Sven Ollino 2015-10-29 12:53:10 UTC
Created attachment 120075 [details]
Document with vertical text at the bottom left corner.
Comment 10 Sven Ollino 2015-10-29 12:55:23 UTC
Do I have the same bug? I attached 3 screenshots where the text gets scrambled in LO Writer 4/5. Tried doc, docx, dot, dotx. Tried saving in writer as ODT, OTT.
You can temporarily fix it by Character->text orientation 0 deg.->OK. ->text orientation->90 deg. After reloading its wrong again as in the Writer screenshot.
Comment 11 Buovjaga 2015-10-29 18:27:04 UTC
(In reply to Sven Ollino from comment #10)
> Do I have the same bug?

Sure looks like it.

If you want to help with our bug situation, but don't know C++: https://wiki.documentfoundation.org/QA/Triage_For_Beginners
Comment 12 Consorci Sanitari de l'Alt Penedès 2016-01-25 17:52:47 UTC
Tested on LibreOffice 3.3.0.4, OOO330m19 (Build:6)
OS: Windows XP SP3

The issue happens in LO first release.
Comment 13 Joel Madero 2016-01-27 18:46:36 UTC
No change was done between OOo and 3.3 so this was inherited.
Comment 14 QA Administrators 2017-03-06 14:25:42 UTC Comment hidden (obsolete)
Comment 15 Consorci Sanitari de l'Alt Penedès 2017-03-13 13:29:19 UTC
Bug still present on:
LibreOffice 5.3.0.3
Build: 7074905676c47b82bbcfbea1aeefc84afe1c50e1
Locale: ca_ES
OS: Windows 10 Pro 64bit Spanish, 1607 version, 14393.693 compilation.
Comment 16 Timur 2017-07-07 08:43:22 UTC
(In reply to Consorci Sanitari de l'Alt Penedès from comment #0)
> - If you press Enter at the end of the cell (the one with vertical text),
> the text does not jump to the next line, it moves to the beginning of the
> text or a position that is not correct.
That should be Bug 34436. Also suffers from Bug 51930, Bug 38066. 

> - With a vertical text cell selected, go to table properties: the text
> orientation is set to horizontal, yet the text displays vertically. If you
> change the orientation to vertical, the orientation changes to horizontal.
> In this condition, alignment and vertical alignment also behaves strangely.
This text is rotated via Format-Character-Position, not by table properties. There are 3 ways to rotate, also by edit style.  
See Bug 88895, Bug 108993, Bug 91961. 

Rules of thumb: first search for existing bugs, then report each issue separately. 
I'll mark this one as a duplicate. Please feel free to disagree if you find that other bugs don't cover those issues.

*** This bug has been marked as a duplicate of bug 34436 ***