https://bugs.documentfoundation.org/show_bug.cgi?id=155300

            Bug ID: 155300
           Summary: Wrong positioning of automatic heading numbers for an
                    RTL paragraph
           Product: LibreOffice
           Version: 7.6.0.0 alpha1+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: hoss...@libreoffice.org

Created attachment 187273
  --> https://bugs.documentfoundation.org/attachment.cgi?id=187273&action=edit
Document created with MS Word

Description:
While creating a right to left (RTL) paragraph, the automatic heading numbers
are positioned incorrectly. They are positioned from start of the paragraph to
the right, which is wrong.

If you press left ctrl+left shift, you will see that the positioning will
become correct, assuming that you want a left to right (LTR) paragraph.

The visible symptom is the positioning of the numbers outside the margins, then
a big blank space, and then the start of heading text.

This is not limited to DOCX, and is also reproducible when saving the content
as ODT files.

Steps to Reproduce:
1. Open the attached .docx file
2. Look at the positioning of the -2-3-1

Actual Results:
The automatic heading numbers fall out of the margins, as the calculation of
the horizontal positioning is done incorrectly. It is measured from the right
of the margin instead of left, for an RTL paragraph.

Expected Results:
The automatic heading numbers should fall inside the margins, and the
calculation of the horizontal positioning should be done by measuring from the
left side of the margin, for an RTL paragraph.

Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 6f1534940ac12ff8e46f4782e18cfb6cf585da39
CPU threads: 32; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: en-US (en_DE); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to