Bug 148688 - Undo change of anchor positions image at wrong spot
Summary: Undo change of anchor positions image at wrong spot
Status: RESOLVED DUPLICATE of bug 140066
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: Not Assigned
URL:
Whiteboard:
Keywords: bibisectNotNeeded, regression
Depends on:
Blocks:
 
Reported: 2022-04-20 15:34 UTC by Telesto
Modified: 2024-05-17 03:09 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2022-04-20 15:34:13 UTC
Description:
Undo change of anchor positions image at wrong spot

Steps to Reproduce:
1. Open attachment 173293 [details] (bug 143136 )
2. Select the caption frame
3. Change anchor to 'to character
4. Change it back to 'as character'
5. Press Undo once

Actual Results:
Image at wrong spot

Expected Results:
Proper location


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4659fc2f0a7223a89446edff0b77e58758b5edf5
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 Jumbo

freeze in
Version: 7.1.0.0.beta1+ (x64)
Build ID: f9fab4203c1aa0b9a3f27ce2713b6d5addc7df19
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

same behaviour as with 7.4 in
4.4.7.2

fine in 
Versie 4.0.0.3 (Bouw-id: 7545bee9c2a0782548772a21bc84a9dcc583b89)

however here the image coordinates being wrong on file open
Comment 1 Dieter 2022-05-06 06:39:59 UTC
Chrash after step 5 in

Version: 7.3.3.2 (x64) / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: he-IL (de_DE); UI: en-GB
Calc: CL
Comment 2 Telesto 2022-05-06 10:02:01 UTC
(In reply to Dieter from comment #1)
> Chrash after step 5 in
> 
> Version: 7.3.3.2 (x64) / LibreOffice Community
> Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
> CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL:
> win
> Locale: he-IL (de_DE); UI: en-GB
> Calc: CL

Would be a different bug.. 
Note I don't repro this with
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 85aa57359befd7a21b3fdf36f2b362f50495f77c
CPU threads: 8; OS: Mac OS X 12.3.1; UI render: Skia/Raster; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 3 raal 2022-11-13 21:11:19 UTC
Confirm Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cfc8a8f5d841b3f84d207196153be67da7f60652
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

In Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a) is image in another position and frame anchored "To character" on open file, but changing anchor and undo doesn't change position of picture.
Comment 4 Stéphane Guillou (stragu) 2024-05-17 03:09:57 UTC
Reproduced in:

Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.4
Calc: threaded

Resolved in:

Version: 7.6.6.3 (X86_64) / LibreOffice Community
Build ID: d97b2716a9a4a2ce1391dee1765565ea469b0ae7
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Bibisected the fix with linux-64-7.6 repo to first _good_ build [759c8683c6345dd728a907d4e89e6745ae9163a1] which is:

commit 5a25d9252791409f5e73616ff752a9ae8227aaf7
author	Miklos Vajna 	Mon Jun 05 20:07:56 2023 +0200
committer	Miklos Vajna 	Tue Jun 06 13:30:45 2023 +0200
tdf#140066 sw: fix bad position of textbox after anchor type change + undo
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152627

Thank you Miklos!

*** This bug has been marked as a duplicate of bug 140066 ***