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: 2023-07-23 00:00 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.