Bug 156494

Summary: overwriting a flipped image and undo forgets the flippedness of the original
Product: LibreOffice Reporter: csongor
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: csongor
Priority: medium    
Version: 5.4.0.3 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=119514
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103152, 105948    
Attachments: sample document with a horizontally flipped image
image of letter F to overwrite the flipped R in the document

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