Bug 114734 - Comment direction lost on saving-then-reloading a .docx
Summary: Comment direction lost on saving-then-reloading a .docx
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: RTL-CTL DOCX-Comments
  Show dependency treegraph
Reported: 2017-12-28 14:56 UTC by Eyal Rozenberg
Modified: 2019-09-18 20:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

A document for reproducing the bug (5.29 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-09-17 19:41 UTC, Eyal Rozenberg

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2017-12-28 14:56:11 UTC
If you set the direction of a comment (in a docx-imported file) from LTR to RTL, then save, close the file, and reopen - the direction seems to be reverse - RTL.

Steps to Reproduce:
See above

Actual Results:  
Direction of words gets reversed

Expected Results:
Direction shouldn't be reversed

Reproducible: Always

User Profile Reset: No

Additional Info:
Linux Mint 18.3, LO 6.0.0.beta2

User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Comment 1 Dieter 2017-12-29 16:57:06 UTC
I confirm it with

Version: (x64)
Build-ID: 2524958677847fb3bb44820e40380acbe820f960
CPU-Threads: 4; BS: Windows 6.19; UI-Render: Standard; 
Gebietsschema: it-IT (de_DE); Calc: group
Comment 2 Eyal Rozenberg 2018-09-17 19:34:14 UTC
Bug still manifests with:

Build ID: 5d19a1bfa650b796764388cd8b33a5af1f5baa1b
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk2; 
Locale: en-GB (en_GB.UTF-8); Calc: group threaded
Comment 3 Eyal Rozenberg 2018-09-17 19:38:27 UTC
In fact, the bug applies more generally than I had previously thought - it doesn't require importing a DOCX:

1. Create a new Writer document
2. Make sure the default style's direction is LTR
3. Type in some text (doesn't really matter, you could just comment on an empty paragraph, but to be nice.)
4. Insert a comment with a single paragraph of text - enough text  to require multiple lines in the comment box
5. Set the comment box paragraph's direction to RTL, manually
6. Save as DOCX
7. Close the document
8. Open the file you just saved

The comment will have LTR direction.  If you do this via an ODT rather than a DOCX (in step 6) you won't get this bug.
Comment 4 Eyal Rozenberg 2018-09-17 19:41:08 UTC
Created attachment 144958 [details]
A document for reproducing the bug

The bug doesn't manifest by loading this document; you need to take the last several steps of the reproduction instructions:

5. Set the comment box paragraph's direction to RTL, manually
6. Save as DOCX
7. Close the document
8. Open the file you just saved

And you'll see the bug.
Comment 5 QA Administrators 2019-09-18 02:54:06 UTC Comment hidden (obsolete)
Comment 6 Eyal Rozenberg 2019-09-18 20:05:23 UTC
I am experiencing this bug EVERY SINGLE DAMN DAY (!)  ... comment direction setting is currently _the_ most annoying broken LO RTL issue AFAIC.

Seeing this right now with:

Build ID: 1:6.3.1-1
CPU threads: 4; OS: Linux 5.2; UI render: default; VCL: gtk3; 
Locale: he-IL (en_IL); UI-Language: en-US
Calc: threaded