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'.
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
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
Created attachment 175783 [details] Screenshot of different positions of the rectangle
Created attachment 175784 [details] Screenshot of regular text wrapped around image
Created attachment 175785 [details] Video showing reproduction of the bug
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.