Bug 155095

Summary: Shape over collapsed group is incorrectly resized, when area is pasted
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: CalcAssignee: Regina Henschel <rb.henschel>
Status: VERIFIED FIXED    
Severity: normal CC: buzea.bogdan, miguelangelrv
Priority: medium    
Version: 7.5.2.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108741    
Attachments: sheet with group and shape to reprocude the error

Description Regina Henschel 2023-04-30 17:54:00 UTC
Created attachment 187016 [details]
sheet with group and shape to reprocude the error

Open attached document. It has some rows with a group. Open and close the group and notice that the shape expands and shrinks, but always goes from 'D' to 'K'. That is correct, because the shape has the anchor "To Cell (resize with cell)".
Close the group.
Mark the yellow area and copy it to clipboard.
Go to a cell below, e.g. B22.
Paste the clipboard content. The grouping is removed and all rows are shown. That is expected. But look at the shape. It is only expanded from 'F' to 'J'.

Expected: The shape goes from 'D' to 'K' same as in the original area.
Comment 1 m_a_riosv 2023-05-01 15:49:55 UTC
Reproducible.
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a1acc2f46cc499631d66b1d7a923ed15ab4f28de
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

Versión: 6.0.7.2 (x64)
Id. de compilación: 78c12ce5f2b8960f18b204a7ea82f971769f1679
Subprocs. CPU: 16; SO: Windows 10.0; Repres. IU: GL; 
Configuración regional: es-ES (es_ES); Calc: CL

V607, is the first version, copying the shapes.
Comment 2 BogdanB 2023-05-03 04:58:00 UTC
Also in
Version: 7.5.2.1 (X86_64) / LibreOffice Community
Build ID: e8bf3b441b8370f8440b0339fd9490765a8d57ca
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 3 BogdanB 2023-05-08 05:30:18 UTC
Regina, you can mark this bug as Resolved also here.
The group after paste is from D to K, as it should.

Verified in
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 4f93995f2262cde0b16bacc83f4ba3c6161ada7f
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

Bad in
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 4 BogdanB 2023-05-08 11:58:05 UTC
Verified in
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 4f93995f2262cde0b16bacc83f4ba3c6161ada7f
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded