Bug 125938 - Paste cell with cell-anchored images does not put anchor in target cell.
Summary: Paste cell with cell-anchored images does not put anchor in target cell.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2019-06-15 12:59 UTC by Olivier Hallot
Modified: 2019-08-14 09:44 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Spreadsheet with images to copy and paste, shows pasted cells have anchors are misplaced (314.68 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-06-15 12:59 UTC, Olivier Hallot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2019-06-15 12:59:05 UTC
Created attachment 152210 [details]
Spreadsheet with images to copy and paste, shows pasted cells have anchors are misplaced

Attached document helps to see the bug.

Steps to reproduce

All images in Planilha1 are cell-anchored (with resizing)

1) copy cells in Planilha1.A1:E1
2) paste cells in Planilha2.b10.f10

Actual results: 
- Images are placed in right position planilha2.b10:f10
- However, pasted images are anchored in Planilha2.A1:E1, select a pasted image to see anchor in 1st row.

So the anchor is not brought to the target cell.
Comment 1 m.a.riosv 2019-06-16 09:24:30 UTC
Hi Olivier,
as I see pasted image is anchored to To Cell (resize with cell)-

Doing auto resize on source cells, it reduce the cells size to the size of their format text, and this is what happens at pasting, cell is auto-resized and the image is adapted in accordance.

The best way that I have used it's to set up a large size font, so when the cells are copied they carry the font size and resized properly.
Comment 2 Olivier Hallot 2019-06-17 06:35:46 UTC
(In reply to m.a.riosv from comment #1)
> Hi Olivier,
> as I see pasted image is anchored to To Cell (resize with cell)-
> 
> Doing auto resize on source cells, it reduce the cells size to the size of
> their format text, and this is what happens at pasting, cell is auto-resized
> and the image is adapted in accordance.
> 
> The best way that I have used it's to set up a large size font, so when the
> cells are copied they carry the font size and resized properly.

Please note I am referring to the place of the anchor. The anchor location is not in the target cell.

My understanding is that if an image is anchored in a cell, when I copy and paste the cell, the anchor should be in the target cell.
Comment 3 Buovjaga 2019-06-17 10:42:27 UTC
Repro

Version: 6.4.0.0.alpha0+ (x64)
Build ID: b61a1ca837223ba9d7da1aa8936f228d89bde60a
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-06-16_01:14:55
Locale: fi-FI (fi_FI); UI-Language: en-US
Calc: threaded