Bug 134040 - Text remains under a shape anchored to page in a two-column section while wrap is off
Summary: Text remains under a shape anchored to page in a two-column section while wra...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: x86 (IA32) Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Anchor-and-Text-Wrap Shapes
  Show dependency treegraph
 
Reported: 2020-06-16 13:17 UTC by LeroyG
Modified: 2023-04-12 16:30 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample file with issue. (14.37 KB, application/vnd.oasis.opendocument.text)
2020-06-16 13:20 UTC, LeroyG
Details
Bibisect log (3.05 KB, text/plain)
2020-06-16 14:09 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LeroyG 2020-06-16 13:17:59 UTC
Description:
Moving a shape anchored to page in a two-columns section could leave the first line of a paragraph partly or totally under the shape.

Steps to Reproduce:
1. Define a section with two columns and content evenly distributed.
2. Insert a shape or an image between the last two paragraphs. Set anchor to page and wrap to none (or off).
3. When the first line of text remain before the shape, move the shape up (best if using `Alt`+`Arrow` for precision).

Actual Results:
At some points, the first line of the last paragraph remain partly or totally under the shape.

Expected Results:
Text lines before or after the image.


Reproducible: Sometimes


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Adding more lines to the last paragraph, adding more paragraphs, or changing paragraphs length sometimes discontinues the wrong behavior.
Not an arrange issue.
OpenGL enabled or disabled do not appear affect.
Comment 1 LeroyG 2020-06-16 13:20:27 UTC
Created attachment 162054 [details]
Sample file with issue.
Comment 2 Telesto 2020-06-16 13:28:23 UTC
Repro wtih
Version: 7.1.0.0.alpha0+ (x64)
Build ID: a35c18aeff3b1d8f270db7e094850fb8ba1ab84a
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

and with
Version: 6.2.9.0.0+ (x86)
Build ID: 5f01fe15eb2661f1f9ce12d1d99dc2a705b462ee
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win; 
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: CL

but not with
Version: 6.0.0.0.alpha0+
Build ID: 2cd664b3d618e6085be8b44ee86eada6cd5f8789
CPU threads: 4; OS: Windows 6.29; UI render: default; 
Locale: nl-NL (nl_NL); Calc: CL
Comment 3 Telesto 2020-06-16 14:09:31 UTC
Created attachment 162058 [details]
Bibisect log

Bisected to
author	Patrick Jaap <patrick.jaap@tu-dresden.de>	2019-09-06 10:50:05 +0200
committer	Miklos Vajna <vmiklos@collabora.com>	2019-09-24 09:01:19 +0200
commit 1e9d08d046bfe362e5e2ffeb36e35692fc3b55f5 (patch)
tree dae636621a946a24b18fad29e280c863c86b7f11
parent b212f74a9a25bde0ab662777ab2f1fa657314504 (diff)
tdf#127235 break if object is larger than page
We will always have an overlap if the object is larger than the whole page.
Look for the next page style: if it is missing or the same as the current,
we simply stop.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=1e9d08d046bfe362e5e2ffeb36e35692fc3b55f
Comment 4 Telesto 2020-06-16 14:11:03 UTC
Adding CC: to Patrick Jaap
Comment 5 Patrick Jaap 2020-09-22 18:04:21 UTC
Hi, I confirm this bug and investigate. 

Something is odd about the height of the shape: 

GetHeight(rRect) is reported to be 1073712999 which is not correct at all.
Comment 6 Justin L 2021-11-08 11:31:15 UTC
removing assignment since untouched for over a year.
Comment 7 LeroyG 2021-11-08 11:49:46 UTC
Repro with
Version: 7.1.7.2 (x86) / LibreOffice Community
Build ID: c6a4e3954236145e2acb0b65f68614365aeee33f
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: es-MX (es_MX); UI: es-ES
Calc: threaded
Comment 8 LeroyG 2022-05-03 11:07:08 UTC
Repro with
Version: 7.3.2.2 (x86) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: es-MX (es_MX); UI: en-US
Calc: threaded