Bug 140205 - Dragging an image frame anchored as 'as character' twice followed by undo breaks layout
Summary: Dragging an image frame anchored as 'as character' twice followed by undo bre...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks: DOCX-Textbox
  Show dependency treegraph
 
Reported: 2021-02-06 08:31 UTC by Telesto
Modified: 2024-08-04 18:55 UTC (History)
5 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 2021-02-06 08:31:53 UTC
Description:
Dragging an image frame anchored as 'as character' twice followed by undo brakes layout 

Steps to Reproduce:
1. Open attachment 163564 [details]
2. Save as DOCX
3. File reload
4. Select figure 1 and drag it down somewhat (not happens, expected, 'as character'
5. Drag it down again (not happens, expected)
6. Press undo 2x

Actual Results:
Image moves off page

Expected Results:
Not so


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 3ed9bba283a6a67864c0928186e277240be0d9ba
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
Comment 1 Telesto 2021-02-06 08:32:32 UTC
Still OK with
Version: 6.4.0.0.beta1+ (x64)
Build ID: 20be5cd0bdc57d812bf34a2debfe48caa51de881
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win; 
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: CL
Comment 2 NISZ LibreOffice Team 2021-02-09 10:00:51 UTC
Confirming with:

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 44b914b1e2616ca8f70e896e653a46ca93610234
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-GB
Calc: CL

Still ok with:

Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL

Also still good in bibisect-7.2 master:

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 380ab85b6594a013f34f5e6ec69fb569336bbb48
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Must be something very fresh.
Comment 3 raal 2021-04-10 16:56:01 UTC
Can you check it? I cannot reproduce with Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: c47ad11f8c2e917adebbd5d7b3a3ef6cc4b3e670
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 4 Telesto 2021-04-12 11:18:35 UTC
Not totally the same as initially, but undo still broken..

1. Open attachment 163564 [details]
2. Save as DOCX
3. File reload
4. Select the frame of figure 1
5. Drag it over figure 2 (nothing happens)
6. Repeat -> Now the layout changes (more with space around figure 1
7. Press and hold CTRL+Z

Image frame and content out of sync. Not totally unique bug.. It has enough in common with bug 140208 to be related
Comment 5 NISZ LibreOffice Team 2021-04-23 12:05:13 UTC
Still confirmed in:

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: db1cf111666847ce5ce93d18ae5ae8c29a4c44d6
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded
Comment 6 Buovjaga 2021-08-04 15:37:11 UTC
(In reply to Telesto from comment #4)
> Not totally the same as initially, but undo still broken..
> 
> 1. Open attachment 163564 [details]
> 2. Save as DOCX
> 3. File reload
> 4. Select the frame of figure 1
> 5. Drag it over figure 2 (nothing happens)
> 6. Repeat -> Now the layout changes (more with space around figure 1
> 7. Press and hold CTRL+Z
> 
> Image frame and content out of sync. Not totally unique bug.. It has enough
> in common with bug 140208 to be related

It seems unreliable to reproduce. I can't repro with this from Linux 7.3 repo:

commit d1abf4acc1ed26e35ff1347dd5bf0b4ac4f0c70a (HEAD -> master, origin/master, origin/HEAD)
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Fri Jul 23 17:33:54 2021 +0200

    source 612d5b1a04fe022a34018d901bb9b052791d54e5

But I can repro with my master build

Arch Linux 64-bit
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: f234fe77a0070927b8ae2ba3309f63aa718624f5
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 4 August 2021

However, the result with the bounding box position is not always the same.
Comment 7 QA Administrators 2023-08-05 03:05:27 UTC Comment hidden (obsolete)
Comment 8 Rajasekaran Karunanithi 2024-01-07 21:19:32 UTC
Still reproducable in LO 24.8.0.0.alpha+ under Windows 10(x64).

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 25276df12abd9d002f7f899900434617b256f745
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-IN (en_IN); UI: en-US
Calc: threaded
Comment 9 Stéphane Guillou (stragu) 2024-05-17 02:54:07 UTC
With comment 0 and comment 4 steps and LO 7.2.0.4, I can usually reproduce:
- layout not true to original
- frame and image out of sync

However, I don't reproduce anymore with:

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

Undoing always restores original position. I tried quite a few times.

Telesto, can you please test again with a daily build?
Comment 10 Buovjaga 2024-08-04 18:55:47 UTC
I could repro in 2021, but not anymore, so let's close.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5850b22e04a7a055e5b4c6b23a1d32d74270506d
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded