Bug 137157 - CENTER ALIGNMENT not working in paragraphs containing line breaks: RESET mysteriously corrects it
Summary: CENTER ALIGNMENT not working in paragraphs containing line breaks: RESET myst...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-30 12:06 UTC by R. Green
Modified: 2022-04-29 17:30 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Zip file containing WRITER file containing text copied from the enclosed pdf (457.50 KB, application/x-zip-compressed)
2020-09-30 12:06 UTC, R. Green
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R. Green 2020-09-30 12:06:25 UTC
Created attachment 165972 [details]
Zip file containing WRITER file containing text copied from the enclosed pdf

Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded

Open the attached Writer file. The text has been copied over from the attached pdf (using Ctrl + V then selecting the "Unformatted text" option), then formatted using either line breaks or paragraph breaks (see below)

1. The first headline "WATER-RELATED INFRASTRUCTURE IN MEDIEVAL LONDON" has been created using line-breaks. The lines are INCORRECTLY CENTERED.

2. The second headline "WATER-RELATED INFRASTRUCTURE IN MEDIEVAL LONDON" has been created using paragraph breaks. The lines are CENTERED CORRECTLY.

CONCLUSION: The centering problem, when it appears, affects ONLY centered paragraphs which have been broken with line breaks.

3. Now open the Heading 2 dialog and press RESET then OK.

RESULT: The centering corrects itself. However, there is no change in the property values on that page and the correction does not follow logically from the definition of the RESET button in the helpfiles, namely: "Resets changes made to the current tab to those applicable when this dialogue box was opened."
Comment 1 Dieter 2021-04-18 11:07:49 UTC
(In reply to R. Green from comment #0)

> The text has been copied over from the
> attached pdf (using Ctrl + V then selecting the "Unformatted text" option),
> then formatted using either line breaks or paragraph breaks (see below)
> 
> 1. The first headline "WATER-RELATED INFRASTRUCTURE IN MEDIEVAL LONDON" has
> been created using line-breaks. The lines are INCORRECTLY CENTERED.

I can't reproduce the steps

> 3. Now open the Heading 2 dialog and press RESET then OK.
> RESULT: The centering corrects itself.
I can't confirm that

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 807d059d99e7b99fe45a712428befa17ffa44858
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 2 R. Green 2021-06-27 10:12:51 UTC
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: c703b2d22c3f45825d9c9d790c3b5a4b6f97e776
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-06-17_00:44:32
Calc: threaded

The issue is still apparent in this daily.

Even though the "Heading 2" paragraph style indents read ZERO in the "Indents and Spacing" tab, the lines which have been created by line breaks are still off centre, and you need to press "RESET" to centre them.
Comment 3 Buovjaga 2022-04-29 15:10:37 UTC
R. Green: are you still able to reproduce this by copying from the PDF? I'm not sure which steps exactly we should take. I tried doing it from scratch, but it worked fine.

Arch Linux 64-bit
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 3a4a12b3801b0b88d119c6e7aaca1e183f7e470f
CPU threads: 8; OS: Linux 5.17; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded Jumbo
Built on 29 April 2022
Comment 4 R. Green 2022-04-29 16:08:10 UTC
Version: 7.3.1.3 / LibreOffice Community
Build ID: a69ca51ded25f3eefd52d7bf9a5fad8c90b87951
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Calc: threaded

I can't duplicate this problem from scratch in a new file; it only seems to affect the specimen file. So, AFAIK, it's fixed.
Comment 5 Buovjaga 2022-04-29 17:30:54 UTC
Ok, let's close and be happy