Bug 170148 - Copy a table with pictures to another file is descroying the place of the pictures
Summary: Copy a table with pictures to another file is descroying the place of the pic...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.2.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-27 19:47 UTC by Harald
Modified: 2026-01-07 16:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Original table (222.33 KB, image/png)
2025-12-27 19:48 UTC, Harald
Details
Copy of the table (228.83 KB, image/png)
2025-12-27 19:48 UTC, Harald
Details
Example table with pictures (836.14 KB, application/xml)
2025-12-28 10:44 UTC, Harald
Details
Right click on a table (26.10 KB, image/png)
2025-12-29 07:16 UTC, Harald
Details
Copy Dialog (35.85 KB, image/png)
2025-12-29 07:17 UTC, Harald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harald 2025-12-27 19:47:22 UTC
Description:
I have a table with some pictures. When I copy the table to another file the pictures will not be on the place where they have to be. 
No picture is in the place of the original table.
It's not possible to access some of the pictures

Steps to Reproduce:
1. Create a table with picture - anker on a cell
2. Copy the table to another file
3.

Actual Results:
The pictures are not in place

Expected Results:
The pictures have to be on the same place as in the original table


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Ubuntu package version: 4:24.2.7-0ubuntu0.24.04.4
Calc: threaded
Comment 1 Harald 2025-12-27 19:48:04 UTC
Created attachment 204826 [details]
Original table
Comment 2 Harald 2025-12-27 19:48:46 UTC
Created attachment 204827 [details]
Copy of the table

Copy of the table
Comment 3 m_a_riosv 2025-12-27 22:56:09 UTC
Please attach a sample file, reduced as much as possible, without private information.
Comment 4 Harald 2025-12-28 10:44:13 UTC
Created attachment 204831 [details]
Example table with pictures

If you copy "Tabelle1" to another file the pictures are not in place.
But:
If you copy this copy back to the origin the pictures are back on their place - funny.
Comment 5 Harald 2025-12-28 10:46:46 UTC
I uploaded the requested example.
I used xml as type of the ods-file - correct?
Comment 6 m_a_riosv 2025-12-28 14:09:56 UTC
It is about copying some cells, if you copy the whole sheet, it is pasted right.

It happens because when you are copying some cells, you are not copying the row height, setting up the same row height in the new spreadsheet shows the pictures in their place, they are anchored to cells.
Comment 7 Telesto 2025-12-28 14:40:26 UTC
I vaguely remind some issue around image anchoring in Calc. Those where fixed a while back. So retesting the problem with more recent version is advised.
Comment 8 Harald 2025-12-28 15:46:42 UTC
Problem appears when copying a whole table to an other file!
It´s nothing with copying cells.
Comment 9 Harald 2025-12-28 15:47:41 UTC
(In reply to m_a_riosv from comment #6)
> It is about copying some cells, if you copy the whole sheet, it is pasted
> right.
> 
> It happens because when you are copying some cells, you are not copying the
> row height, setting up the same row height in the new spreadsheet shows the
> pictures in their place, they are anchored to cells.

Problem appears when copying a whole table to an other file!
It´s nothing with copying cells.
Comment 10 m_a_riosv 2025-12-28 22:25:19 UTC
What do you mean by 'copying a table'?
Comment 11 Harald 2025-12-29 07:16:57 UTC
Created attachment 204847 [details]
Right click on a table
Comment 12 Harald 2025-12-29 07:17:23 UTC
Created attachment 204848 [details]
Copy Dialog
Comment 13 Harald 2025-12-29 07:18:00 UTC
(In reply to Harald from comment #12)
> Created attachment 204848 [details]
> Copy Dialog

I added 2 screenshoots of the copy dialog.
Comment 14 m_a_riosv 2025-12-29 14:00:39 UTC
Copy sheet works fine for me.
Comment 15 Harald 2025-12-30 08:28:53 UTC
(In reply to m_a_riosv from comment #14)
> Copy sheet works fine for me.

Did you test with pictures?
Comment 16 m_a_riosv 2025-12-30 22:54:45 UTC
(In reply to Harald from comment #15)
> (In reply to m_a_riosv from comment #14)
> > Copy sheet works fine for me.
> 
> Did you test with pictures?

Yes I did.
Comment 17 Harald 2026-01-07 09:18:01 UTC
Seems to be fixed with latest Version:

Version: 25.8.4.2 (X86_64)
Build ID: 290daaa01b999472f0c7a3890eb6a550fd74c6df
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded