Bug 106336 - EDITING: Copying column or row to another one with different width doesn't reposition image correctly
Summary: EDITING: Copying column or row to another one with different width doesn't re...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste Calc-Images
  Show dependency treegraph
 
Reported: 2017-03-05 13:26 UTC by Thomas Lendo
Modified: 2023-07-09 22:43 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test sheet for Bug 106336 (44.87 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-03-05 13:31 UTC, Thomas Lendo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Lendo 2017-03-05 13:26:37 UTC
In a Calc sheet, if you have an image anchored to cell and if you are copying a column to another column with a smaller width in the left of the image column, then the image will not be repositioned correctly.

Steps to reproduce:
1. Create a calc sheet.
2. Change the width of column A, B and D to 5 cm.
3. Insert an image to column B and D and anchor it to the cells.
4. Copy the whole column A to column C (or column B to column C).

Actual result:
The image of column D will not be repositioned and doesn't fit to the anchored cell any more.

Expected result:
The image of column D will be repositioned so that the distance to its cell borders remain the same as before.

In general, inserting a column with different width as before should reposition all following images in the right so that the distance to their cell borders will remain the same as before.
Comment 1 Thomas Lendo 2017-03-05 13:31:03 UTC
Created attachment 131647 [details]
Test sheet for Bug 106336

Created and tested with LibO version: 5.3.0.3
Build ID: 1:5.3.0~rc3-0ubuntu1~trusty1.1
CPU Threads: 2; OS Version: Linux 3.13; UI Render: default; VCL: gtk2; Layout Engine: new; 
Locale: de-AT (de_DE.UTF-8); Calc: group
Comment 2 m_a_riosv 2017-03-05 13:36:38 UTC
Repro.
Version: 5.4.0.0.alpha0+
Build ID: 472f92421b1b15dc765714a7c657704812859868
CPU threads: 4; OS: Windows 6.19; UI render: GL; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-03-02_00:18:28
Locale: es-ES (es_ES); Calc: group
Comment 3 QA Administrators 2018-08-28 02:42:39 UTC Comment hidden (obsolete)
Comment 4 m_a_riosv 2018-08-28 08:28:12 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2019-09-02 09:22:21 UTC Comment hidden (obsolete)
Comment 6 Thomas Lendo 2019-09-02 11:01:19 UTC Comment hidden (obsolete)
Comment 7 Thomas Lendo 2020-09-26 10:38:43 UTC
Issue not only with columns but also with rows.

Still repro with 7.1.0.0.alpha0+ (Build ID: a8c218a52a639b0e7f689dea878a0421702628e0; OS: Linux 4.15; UI render: default; VCL: gtk3; TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2020-09-25_22:25:07; Calc: threaded).

Adding Samuel Mehrbrodt to CC list as he worked on image anchoring in the past e.g. at bug 114552.
Comment 8 QA Administrators 2022-09-27 03:31:18 UTC Comment hidden (obsolete)
Comment 9 Thomas Lendo 2023-07-09 22:43:29 UTC
Still repro with
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 77fca616e0bd79e0b405fd0b3543cf8e94e15df3
CPU threads: 2; OS: Linux 5.8; UI render: default; VCL: gtk3