Bug 140975 - EDITING Shape and textbox fall apart when changing anchor to “as character”
Summary: EDITING Shape and textbox fall apart when changing anchor to “as character”
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.2.0
Keywords: implementationError
Depends on:
Blocks: Shape-Textbox
  Show dependency treegraph
 
Reported: 2021-03-12 11:08 UTC by NISZ LibreOffice Team
Modified: 2021-05-05 12:32 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer (8.75 KB, application/vnd.oasis.opendocument.text)
2021-03-12 11:08 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document in Writer (20.25 KB, image/png)
2021-03-12 11:09 UTC, NISZ LibreOffice Team
Details
Screenshot of the problem in Writer (19.17 KB, image/png)
2021-03-12 11:09 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-03-12 11:08:43 UTC
Created attachment 170428 [details]
Example file from Writer

Attached simple file contains a shape with textbox anchored to paragraph. Wrap setting is After.
If the anchor type is changed to “As Character” the shape changes its position, but the textbox does not.

Steps to reproduce:
    1. Open attached file
    2. Right click on the blue shape, select Anchor – As Character

Actual results:
Shapes position changes, the textbox stays behind separated.

Expected results:
Shapes position changes and the textbox 

LibreOffice details:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 9d8accf03984a64a4105826e55b221962628eb93
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-GB
Calc: CL

Also in:
Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU szálak: 4; OS: Windows 10.0 Build 18363; Felületmegjelenítés: alapértelmezett; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: threaded

Version: 6.0.0.3
Build ID: 64a0f66915f38c6217de274f0aa8e15618924765
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: en-US (hu_HU); Calc: CL

Version: 4.4.0.3
Build ID: de093506bcdc5fafd9023ee680b8c60e3e0645d7
Locale: hu_HU

Not yet in:
Version: 4.3.0.4
Build ID: 62ad5818884a2fc2e5780dd45466868d41009ec0
Comment 1 NISZ LibreOffice Team 2021-03-12 11:09:03 UTC
Created attachment 170429 [details]
Screenshot of the original document in Writer
Comment 2 NISZ LibreOffice Team 2021-03-12 11:09:20 UTC
Created attachment 170430 [details]
Screenshot of the problem in Writer
Comment 3 Commit Notification 2021-04-19 08:45:52 UTC
Attila Bakos (NISZ) committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/cb965f2cf6d68c284ccbd8a9635abfdfcc0538ca

tdf#141550 tdf#141557 tdf#140975 sw: fix textbox crash

It will be available in 7.2.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-05-05 12:32:17 UTC
Verified in: 

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: ef78c7d93e4f170ac7a7f0307a8305052524eb53
CPU threads: 4; OS: Windows 10.0 Build 17134; UI render: default; VCL: win
Locale: ug-CN (hu_HU); UI: hu-HU
Calc: threaded