Bug 140798 - Image order not respected when copy/pasting images (if not saved before)
Summary: Image order not respected when copy/pasting images (if not saved before)
Status: RESOLVED FIXED
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: target:7.3.0 target:7.2.3
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Writer-Images Clipboard
  Show dependency treegraph
 
Reported: 2021-03-04 13:13 UTC by Telesto
Modified: 2022-04-20 18:39 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (9.64 MB, application/vnd.oasis.opendocument.text)
2021-03-04 13:13 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-03-04 13:13:13 UTC
Description:
Image order not respected when copy/pasting images (if not saved before)

Steps to Reproduce:
1. Open the attached file
2. Select the top image -> Send to back
3. CTRL+A
4. CTRL+C
5. CTRL+N
6. CTRL+V

Actual Results:
Image on top

Expected Results:
Image in background after


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 385808a2dff7300ec0120fdd5e8acfad8f86e50d
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: nl-NL
Calc: CL

not in
Version: 7.1.0.0.beta1+ (x64)
Build ID: f9fab4203c1aa0b9a3f27ce2713b6d5addc7df19
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: nl-NL
Calc: CL
Comment 1 Telesto 2021-03-04 13:13:37 UTC
Created attachment 170211 [details]
Example file
Comment 2 mulla.tasanim 2021-03-04 17:57:50 UTC
Thank you for reporting the bug. 

I can not reproduce the bug in

Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nb-NO (en_US); UI: en-US
Calc: CL

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 761a672d62df1891b9f4f367a499b220ab2b33fa
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 3 Telesto 2021-03-04 18:02:31 UTC
@Mulla 
Thanks for checking. Any change to get your hands one more recent version of master. The 2020-12-02 build quite old. 

> Version: 7.2.0.0.alpha0+ (x64)
> Build ID: 761a672d62df1891b9f4f367a499b220ab2b33fa
> CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
> Locale: en-US (en_US); UI: en-US
> Calc: CL
Comment 4 Ezinne 2021-03-08 08:31:03 UTC
I was able to reproduce the bug using the description steps:

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 43e306ebe61ef5a849dcfd1e74b697be3b3fe716
CPU threads: 8; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 5 Ezinne 2021-03-08 08:32:23 UTC
Bibisected to the following commit using repo bibisect-linux-7.2.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=188ec34cf157ffee8c63f03f420ca9daafb5ff29

Author:     Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
AuthorDate: Sat Dec 12 23:44:26 2020 +0100
Commit:     Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
CommitDate: Wed Dec 30 10:47:05 2020 +0100

    atrflyin.cxx Modify no more
   
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107647
Comment 6 Telesto 2021-03-08 12:25:21 UTC
Adding CC: to Bjoern Michaelsen
Comment 7 Björn Michaelsen 2021-10-25 19:38:35 UTC
https://gerrit.libreoffice.org/c/core/+/124162
Comment 8 Commit Notification 2021-10-29 11:24:33 UTC
Bjoern Michaelsen committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/3cfd63cb55ab1a7e6df53eaeb2a7623be05983d0

tdf#140798, tdf#143815, tdf#141659: fix fly content hint handling

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 9 Commit Notification 2021-11-03 10:56:54 UTC
Bjoern Michaelsen committed a patch related to this issue.
It has been pushed to "libreoffice-7-2":

https://git.libreoffice.org/core/commit/84c8adb703906b0fe2c7f9a5e7174e00139a08f3

tdf#140798, tdf#143815, tdf#141659: fix fly content hint handling

It will be available in 7.2.3.

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 10 Justin L 2021-11-10 08:59:35 UTC
I presume this should be marked as fixed.
I could reproduce in early 7.3, but I can't reproduce in master.
Comment 11 Jean-Baptiste Faure 2022-04-20 18:39:24 UTC
The commit for this bug generates a new regression : bug 148691

Best regards. JBF