Bug 142847 - EDITING Shape anchored as character + wrap spacing makes textbox fall out of the shape
Summary: EDITING Shape anchored as character + wrap spacing makes textbox fall out of ...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All All
: medium normal
Assignee: Attila Bakos (NISZ)
URL:
Whiteboard: target:7.3.0
Keywords: implementationError
Depends on:
Blocks: Shape-Textbox
  Show dependency treegraph
 
Reported: 2021-06-14 11:43 UTC by NISZ LibreOffice Team
Modified: 2021-09-08 10:36 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer (21.74 KB, application/vnd.oasis.opendocument.text)
2021-06-14 11:43 UTC, NISZ LibreOffice Team
Details
Screenshot of the problem in Writer after switching Top and Bottom spacing (85.44 KB, image/png)
2021-06-14 11:43 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2021-06-14 11:43:30 UTC
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

Actual results:
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.

Expected results:
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.

LibreOffice details:
Version: 7.2.0.0.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
Calc: CL

It was even worse in 6.0, 5.0, 4.4. In 4.3 there was no textbox on the shape.
Comment 1 NISZ LibreOffice Team 2021-06-14 11:43:49 UTC
Created attachment 172867 [details]
Screenshot of the problem in Writer after switching Top and Bottom spacing
Comment 2 Dieter 2021-07-01 09:47:33 UTC
I confirm problem with

Version: 7.1.4.2 (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
Calc: CL

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
Comment 3 Commit Notification 2021-08-30 16:17:40 UTC
Attila Bakos (NISZ) committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/84888d6bbee16978774acb5d23b1b4eb006df67f

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:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 NISZ LibreOffice Team 2021-09-08 10:36:45 UTC
Verified in:
Version: 7.3.0.0.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
Calc: threaded