Bug 125336 - Paragraph indent used twice when positioning frame
Summary: Paragraph indent used twice when positioning frame
Status: NEW
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:
Depends on:
Blocks: Paragraph-Indent
  Show dependency treegraph
 
Reported: 2019-05-17 10:07 UTC by ajlittoz
Modified: 2023-04-17 13:54 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
File with various anchor parameters combinations (21.19 KB, application/vnd.oasis.opendocument.text)
2019-05-17 10:07 UTC, ajlittoz
Details
How it looks in LibreOffice 3.3 and LibreOffice 6.3 Master (40.24 KB, application/pdf)
2019-05-22 16:03 UTC, Xisco Faulí
Details
Analysis of frame positioning (56.63 KB, application/vnd.oasis.opendocument.text)
2022-12-11 18:09 UTC, ajlittoz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ajlittoz 2019-05-17 10:07:18 UTC
Created attachment 151482 [details]
File with various anchor parameters combinations

Paragraph has left indent.
Image inserted with anchor "To Paragraph", horizontal position *Left* *Paragraph text area*

Expected result:
Image aligned on paragraph left indent with only wrapping "guard" spacing around it

Effective result:
Image aligned on paragraph left indent (OK) but indent is added to right wrap spacing causing an unwanted additional space to be added to right of image. The resulting "indent" along the image is twice paragraph indent + wrap space + image width.

I would expect paragraph indent to be used only once as it is already taken into account to compute limits of paragraph text area.

Note: in addition, it seems Writer has some trouble in this circumstance to evenly vertically center the frame (see attachement).

This unexpected behaviour is demonstrated in case C of the attachment.
Comment 1 Harald Berger 2019-05-17 11:25:42 UTC
I can confirm this with
Windows 10 Home; Version 1809;
Version: 6.2.3.2 (x64)
Build-ID: aecc05fe267cc68dde00352a451aa867b3b546ac
CPU-Threads: 8; BS: Windows 10.0; UI-Render: Standard; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: threaded
Comment 2 Xisco Faulí 2019-05-22 16:03:47 UTC
Created attachment 151598 [details]
How it looks in LibreOffice 3.3 and LibreOffice 6.3 Master
Comment 3 Xisco Faulí 2019-05-22 16:04:15 UTC
@Regina, could you please double check if this is indeed an issue ?
Comment 4 Regina Henschel 2019-05-22 17:05:16 UTC
For me, it is a bug. It is there at least since OOo1.1.5.
Comment 5 QA Administrators 2021-05-22 04:23:27 UTC Comment hidden (obsolete)
Comment 6 ajlittoz 2021-05-22 08:14:58 UTC
Bug still present in

Version: 7.1.3.2
Build ID: 10(Build:2)
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: kf5
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded

Linux distro: Fedora 34
Desktop: KDE Plasma
Comment 7 ajlittoz 2022-12-11 18:09:23 UTC
I made a new analysis of the issue and it points to frame positioning. It looks like frame positioning is rather fragile and interferes badly with text layout.

Several bugs are involved (I know, Bugzilla philosophy is one bug=one report but I believe they are all related).

1- left indent and left border spacing are reused ar right of frame while they have already been used to compute the location of the paragraph text area

2- bottom positioning is buggy:
2-1: no difference is made between Entire paragraph area and Paragraph Text area reference
2-2: bottom positioning is erratic and frame may land in any vertical position

This is analysed in attached BugParagraphIndents.odt
Comment 8 ajlittoz 2022-12-11 18:09:57 UTC
Created attachment 184096 [details]
Analysis of frame positioning