Created attachment 172866 [details]
Example file from Writer
Attached example file contains a shape anchored as character and some text in it.
There is wrap spacing set on it to 1.5 cm Left and Top, and these make the textbox fall out of the shape to the left. Changing the Top spacing to Bottom spacing also makes the textbox fall out of the shape toward the bottom.
Steps to reproduce:
1. Open attached document
The textbox is horizontally shifted to the left.
Changing the Top 1.5 cm spacing to 0 and the Bottom 0 cm spacing to 1.5 cm also makes the textbox move to the bottom while the shape moves towards the top.
Shape and textbox stay together.
This is related to bug #139754 since there are also “as character” anchored frames with wrap spacing set in Writer. That spacing is not exported currently, but once it is then this problem would occur in that docx file.
Version: 22.214.171.124.alpha1+ (x64) / LibreOffice Community
Build ID: 93a3e2f86c27b06062708fe788963a0e49f3a90b
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
It was even worse in 6.0, 5.0, 4.4. In 4.3 there was no textbox on the shape.
Created attachment 172867 [details]
Screenshot of the problem in Writer after switching Top and Bottom spacing
I confirm problem with
Version: 126.96.36.199 (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Additional informations / steps
1. Change spacing to 0 cm on every side => textbox moves to the left
2. Select shape and move it down a little => textbox is now within the shape
3. Save and reload => Textbox again left of the shape
Attila Bakos (NISZ) committed a patch related to this issue.
It has been pushed to "master":
tdf#142847 sw: fix textbox layout at wrap setting
It will be available in 7.3.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Version: 188.8.131.52.alpha0+ (x64) / LibreOffice Community
Build ID: 8151f3a1d99ab740d2affdccc7115faa156bf3ad
CPU threads: 4; OS: Windows 10.0 Build 17134; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU