Bug 156494 - overwriting a flipped image and undo forgets the flippedness of the original
Summary: overwriting a flipped image and undo forgets the flippedness of the original
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Images Undo-Redo
  Show dependency treegraph
 
Reported: 2023-07-27 14:25 UTC by csongor
Modified: 2025-07-27 08:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
sample document with a horizontally flipped image (19.40 KB, application/vnd.oasis.opendocument.text)
2023-07-27 14:25 UTC, csongor
Details
image of letter F to overwrite the flipped R in the document (975 bytes, image/png)
2023-07-27 14:26 UTC, csongor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description csongor 2023-07-27 14:25:21 UTC
Created attachment 188594 [details]
sample document with a horizontally flipped image

In the attached document, there is a red R image, which is normal R letter, I just flipped it horizontally. Now do these steps:

1. Click the image
2. Insert → Image → f.png (the flipped red R is replaced by a non-flipped blue F)
3. Undo

This happens: the non-flipped red R appears
This should happen: the flipped red R appears
Comment 1 csongor 2023-07-27 14:26:46 UTC
Created attachment 188595 [details]
image of letter F to overwrite the flipped R in the document

I think the bug would be visible with any overwriting image. Yet, I still attach the one that I used.
Comment 2 Stéphane Guillou (stragu) 2023-07-27 15:32:08 UTC
Reproduced in recent master build:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 24d0a62bd75b9a895c419aa165da648ab18f134d
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

As well as:

Version: 5.4.0.3
Build ID: 92c2794a7c181ba4c1c5053618179937228ed1fb
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2; 
Locale: en-AU (en_AU.UTF-8); Calc: group
Comment 3 QA Administrators 2025-07-27 03:09:41 UTC Comment hidden (obsolete)
Comment 4 csongor 2025-07-27 08:40:43 UTC
I checked the bug with the most recent version of LO: 

Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: CL threaded

The bug is still there, please fix if you can.