Bug 142382 - Bottom line of wrap 'Parallel' makes line break instead of gap
Summary: Bottom line of wrap 'Parallel' makes line break instead of gap
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2021-05-19 22:23 UTC by Regina Henschel
Modified: 2024-09-11 18:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Document to reproduce the error (14.35 KB, application/vnd.oasis.opendocument.text)
2021-05-19 22:23 UTC, Regina Henschel
Details
Screenshot of different positions of the rectangle (218.48 KB, image/png)
2021-10-16 14:02 UTC, Marie Z
Details
Screenshot of regular text wrapped around image (232.24 KB, image/png)
2021-10-16 14:04 UTC, Marie Z
Details
Video showing reproduction of the bug (2.30 MB, video/mp4)
2021-10-16 14:12 UTC, Marie Z
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2021-05-19 22:23:59 UTC
Created attachment 172181 [details]
Document to reproduce the error

Open attached document. Move the rectangle a little bit down, so that the line starting with 'a b c' needs to wrap.

Error: After the 'j' is not a gap, but a line break. The text continues after the 'j' in a new line with 'k'.

Expected: The 'k' is at the same line as the 'a b c' positioned below the 'y'.
Comment 1 Harshita Nag 2021-05-20 03:57:35 UTC
Can't reproduce this.

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 27911b0455d8dcc08a0702372492a6ce00250cb7
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-04-12_15:34:11
Calc: threaded
Comment 2 Marie Z 2021-10-16 13:58:44 UTC
I was able to reproduce this problem in 7.2.1.2 (x64)
See attached video and screenshot.

Steps to reproduce - using the original attached file:
1.	Open the ParallelWrapNotLastLine.odt file in Writer
2.	Left click on the blue rectangle shape to select it.
3.	Use keyboard arrows to move the rectangle down
4.	Observe that the lowest line affected by the wrap is correctly interrupted by the rectangle (same as all the affected lines of text above) but in most positions continues on a new line instead of on the other side of the rectangle.

Actual result: see step 4
Expected result: Lowest affected line should always continue the other side of the object. 

I did some follow-up tests to provide more details:
- Size and shape - changing size or shape of the inserted object has no significant effect.
- Position of the rectangle: The problem appears if the rectangle barely touches the space of the lowest line. The problem disappears when the rectangle reaches lower – about halfway through the line space. See attached screenshots.
- Line spacing. I was able to reproduce the bug only when using Fixed line spacing.
- Font - I was able to see the problem in (about 20) different fonts. Seems like the problem is not dependent on font.
- Font size - More significant is probably relationship between font size and fixed line spacing value. I can reproduce the issue when font size (converted to cm) is smaller than Fixed line spacing value. The bigger the difference the easier to reproduce the problem – finding the right position for the rectangle to see the failure is easier.
For example:
•	16pt font and 0.8cm line spacing
•	8pt font and 0.6cm line spacing
•	12pt font and 1.5cm line spacing


Steps to reproduce – creating new document:
1.	Create new document in Writer 
2.	Insert a page of some text. (I copied and pasted a news article)
3.	Select the text and set line spacing as fixed with value to 0.8cm and font size to 12pt 
4.	Insert a shape or an image around about a middle of the page
5.	Right click on the inserted object - set the Wrap for that object as Parallel
6.	Left click on the object to select it
7.	Use keyboard arrows to move the object up or down
8.	You can observe that lowest line of text affected by the object is sometimes “broken” – doesn’t continue on the other side of the object, but on a new line. 


Version: 7.2.1.2 (x64) / LibreOffice Community
Build ID: 87b77fad49947c1441b67c559c339af8f3517e22
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: en-US (cs_CZ); UI: en-US
Calc: threaded
Comment 3 Marie Z 2021-10-16 14:02:51 UTC
Created attachment 175783 [details]
Screenshot of different positions of the rectangle
Comment 4 Marie Z 2021-10-16 14:04:06 UTC
Created attachment 175784 [details]
Screenshot of regular text wrapped around image
Comment 5 Marie Z 2021-10-16 14:12:05 UTC
Created attachment 175785 [details]
Video showing reproduction of the bug
Comment 6 Buovjaga 2024-09-11 18:15:00 UTC
Bibisected with linux-64-6.0 to 3c3f10da500967fc6ffecc2f3e076d8ff43e7503
tdf#112448: Fix: take correct line height

It was a backport to 6.0, so setting version to 6.1.