Bug 137317

Summary: Cell anchored shape is copied not moved, if its anchor cell is moved.
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: buzea.bogdan, miguelangelrv, pox_ox2
Priority: medium    
Version: 7.1.0.0.alpha0+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=147561
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108741    
Attachments: File for reproducing the bug

Description Regina Henschel 2020-10-07 16:49:29 UTC
Created attachment 166167 [details]
File for reproducing the bug

Open attached file. It contains a shape, which is anchored to cell B4.
Mark the cell range B4 to C6 and drag it to position G4 for example.
The shape will be as expected with its anchor at cell G4. But the shape is not moved but copied. There is still a shape at the original place.

Expected behavior: If the anchor cell is moved, then the shape moves too.
Comment 1 m_a_riosv 2020-10-07 17:01:29 UTC
Confirmed.
But it happens if the select area to drag doesn't cover the whole cells where the shape it's visible.

Moving C3:D8 works fine for me.

BTW the shape doesn't appear on the navigator.

Version: 7.1.0.0.alpha0+ (x64)
Build ID: a883002d8e2fd77f80c43b7b2e6ac329d83d929d
CPU threads: 4; OS: Windows 10.0 Build 20180; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: threaded
Comment 2 Regina Henschel 2020-10-07 17:21:43 UTC
(In reply to m.a.riosv from comment #1)
> Confirmed.
> But it happens if the select area to drag doesn't cover the whole cells
> where the shape it's visible.
> 
> Moving C3:D8 works fine for me.

We can discuss, whether the shape should only move, if the entire shape is inside the marked cell range.

> 
> BTW the shape doesn't appear on the navigator.

Only named shapes appear on the navigator in Calc, and Calc does not automatically name shapes.
Comment 3 m_a_riosv 2020-10-08 07:50:20 UTC
(In reply to Regina Henschel from comment #2)
> ....
> 
> We can discuss, whether the shape should only move, if the entire shape is
> inside the marked cell range.
> 
I think if anchored to cell it should be always moved with the cell.
> > 
> > BTW the shape doesn't appear on the navigator.
> 
> Only named shapes appear on the navigator in Calc, and Calc does not
> automatically name shapes.
There is a very old bug report tdf#34828
Comment 4 Regina Henschel 2021-01-27 13:02:56 UTC
*** Bug 134543 has been marked as a duplicate of this bug. ***
Comment 5 QA Administrators 2023-01-28 03:25:22 UTC Comment hidden (obsolete)
Comment 6 Regina Henschel 2023-01-28 12:10:19 UTC
The shape is still copied and not moved in Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f1830bff71847a9c17715cff52383956719847fe
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded