Bug 141437

Summary: EDITING: transposed form objects (like circle or line) have wrong dimensions
Product: LibreOffice Reporter: Roland Kurmann <info>
Component: CalcAssignee: Regina Henschel <rb.henschel>
Status: VERIFIED FIXED    
Severity: normal CC: buzea.bogdan, info, rb.henschel
Priority: medium    
Version: 7.0.4.2 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=107348
https://bugs.documentfoundation.org/show_bug.cgi?id=141436
https://bugs.documentfoundation.org/show_bug.cgi?id=139083
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108479    
Attachments: transpose_circle_object.ods
transpose_line_object.ods

Description Roland Kurmann 2021-04-01 20:04:59 UTC
Description:
Form objects have different size/dimensions than the original form object.

Steps to Reproduce:
1. Open attached sheet "transpose_circle_object.ods".
2. Select cells A1 to A3.
3. Copy cells
4. Go to cell A5
5. Menu Edit > Paste Special > Paste Special
6. Click on the Transpose button in the Paste Special dialog.

Actual Results:
The circle changed the shape to an ellipse.
It is in correct cell B5.

Expected Results:
The circle object keeps the shape of a circle.
It is in correct cell B5.


Reproducible: Always


User Profile Reset: No



Additional Info:
I've discovered this bug while fixing and testing bug 107348.

Version: 7.0.4.2
Build ID: 00(Build:2)
CPU threads: 4; OS: Linux 5.3; UI render: GL; VCL: kf5
Locale: de-CH (en_US.UTF-8); UI: de-DE
Calc: threaded

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 4f7bc49bce261f1cf206d25f0299fd080a9f5d28
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Roland Kurmann 2021-04-01 20:06:41 UTC
Created attachment 170906 [details]
transpose_circle_object.ods
Comment 2 Roland Kurmann 2021-04-02 05:47:58 UTC
Created attachment 170911 [details]
transpose_line_object.ods

The transposed line object gets too long when doing similar steps to reproduce using attachment transpose_line_object.ods. It stretches from A5 to C5 when pasted (transposed) to A5.

When copied normal (i.e. not transposed), the form objects do not change shape.
Comment 3 Regina Henschel 2021-04-07 21:33:42 UTC
It happens too, if the shape object is anchored to cell and it happens even if the shape is size protected. There is a similar bug 139083 for copy&paste to a cell of different size. Here the cells have the same size. Therefore I do not set it to duplicate.
Comment 4 Regina Henschel 2023-05-05 14:07:10 UTC
I'm working in that area for bug 139083, see https://gerrit.libreoffice.org/c/core/+/150161
The patch contains a larger change in the way objects which are included in a cell range are pasted. It should fix this problem here too.
Comment 5 BogdanB 2023-05-08 05:35:10 UTC
Regina, you can mark this bug as Resolved also here.
Round circle remains the same shape.

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 6 BogdanB 2023-05-08 11:58:35 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