Bug 156402 - Deleting rows that contain images doesn't delete all the image shapes
Summary: Deleting rows that contain images doesn't delete all the image shapes
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-Images Cell-Management
  Show dependency treegraph
 
Reported: 2023-07-20 13:15 UTC by Jim Connell
Modified: 2025-07-23 03:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
A sample spreadsheet with embedded images. (20.60 MB, application/octet-stream)
2023-07-20 17:13 UTC, Jim Connell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Connell 2023-07-20 13:15:30 UTC
Description:
I have a spreadsheet with a heading followed by many rows which contain several columns containing images.  If I select a block of rows and delete them, any images in the last deleted row are retained and appear in the first not-deleted row, behind any images in that row.

Steps to Reproduce:
1. Open a spreadsheet with rows containing images.
2. Delete a row.
3. Look at row below where the deleted one was.  It will have its images, on top of the images from the (last) deleted row.

Actual Results:
Extra images that should have been deleted with the row(s).

Expected Results:
Image shapes from deleted rows should also be deleted.


Reproducible: Always


User Profile Reset: No

Additional Info:
If multiple rows are deleted, only images from the last deleted row are retained.  It sounds to me like a subscript problem.  Some loop needs a "+1" somewhere.
Comment 1 m_a_riosv 2023-07-20 16:44:53 UTC
Please attach a sample file, and paste the information in Menu/Help/About LibreOffice, there is an icon to copy.
Comment 2 Jim Connell 2023-07-20 17:13:19 UTC
Created attachment 188499 [details]
A sample spreadsheet with embedded images.

This file is a starting point for following the steps outlined above.  As is it has no problems.  After following the steps, you will see the problem.
Comment 3 m_a_riosv 2023-07-20 21:07:11 UTC
It happens to me deleting the last row with images.
Version: 7.6.0.1 (X86_64) / LibreOffice Community
Build ID: 776eaf34564cbf3f034a0ba1fd1d5c32ff9ccf1c
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6256d5fe2e7cb1bb002d5fe59527d3a3fbf6963f
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Comment 4 Jim Connell 2023-07-22 13:57:48 UTC Comment hidden (obsolete)
Comment 5 Jim Connell 2023-07-22 13:59:57 UTC Comment hidden (obsolete)
Comment 6 m_a_riosv 2023-07-22 17:26:59 UTC Comment hidden (obsolete)
Comment 7 Jim Connell 2023-07-22 18:17:56 UTC
I'm having a very bad day.  My apologies.

The similar bug is 156424.
Comment 8 QA Administrators 2025-07-23 03:10:09 UTC
Dear Jim Connell,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug