Bug 146116

Summary: Sticky points move inwards when shape is rotated
Product: LibreOffice Reporter: birnbach <birnbach>
Component: DrawAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: buzea.bogdan, rb.henschel
Priority: medium    
Version: 7.2.2.2 release   
Hardware: x86-64 (AMD64)   
OS: macOS (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108742, 114610    
Attachments: two identical shapes with sticky points and a connector between them
shape after 10 rotations
shape after 10 rotations and 10 rotations back
Test on LO 7.3
screenshot

Description birnbach@posteo.de 2021-12-08 08:45:09 UTC
Description:
A shape has user defined sticky points. When the shape is rotated, the points move towards the center of rotation. Rotating direction is irrelevant.

Steps to Reproduce:
1. draw a shape
2. define a sticky point, preferably on the shape's outline
3. rotate the shape a few times round

Actual Results:
the sticky point moves towards the center of rotation

Expected Results:
the sticky point remains where it was defined


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 6; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded
Comment 1 birnbach@posteo.de 2021-12-08 08:46:25 UTC
Created attachment 176787 [details]
two identical shapes with sticky points and a connector between them

feel free to play around with these shapes
Comment 2 Regina Henschel 2021-12-23 20:38:45 UTC
I cannot confirm the problem. The glue point keeps it position on the outline.

Can you please attach a screenshot of a wrong position after rotation?

Do you have access to a LibreOffice on other than macOS and test it there?

I have tested it with Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c62b8a46470957560b1911651dbade3b0649dee5
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: threaded
Comment 3 birnbach@posteo.de 2021-12-24 12:29:55 UTC
Created attachment 177124 [details]
shape after 10 rotations

I rotated the right shape clockwise 10 times, here is the result.

My test machine is a Retina Mac but the same behaviour was observed on a non-Retina (MacBook Air 2011, OSX 10.13.4)
Comment 4 birnbach@posteo.de 2021-12-24 12:31:54 UTC
Created attachment 177125 [details]
shape after 10 rotations and 10 rotations back

The right shape was rotated 10 times clockwise and then 10 times counter clockwise. It can be seen that the positioning error of the sticky point adds up regardless of the sense of rotation.
Comment 5 birnbach@posteo.de 2021-12-24 12:37:17 UTC
I just noticed that the error is only observable if rotation is done via the properties palette "position and size". 

No problem if the shape is rotated directly i.e. by selecting it on the drawing canvas.
Comment 6 Regina Henschel 2021-12-24 13:58:36 UTC
(In reply to birnbach@posteo.de from comment #5)
> I just noticed that the error is only observable if rotation is done via the
> properties palette "position and size". 
> 
> No problem if the shape is rotated directly i.e. by selecting it on the
> drawing canvas.

I can still not reproduce the error, neither with the rotation section in the side bar nor with the rotation tab in the 'Position and Size' dialog.

A problem only on Mac?
Comment 7 eisa01 2022-02-06 11:40:13 UTC
Created attachment 178088 [details]
Test on LO 7.3

I can confirm.

Version: 7.3.0.3 / LibreOffice Community
Build ID: 0f246aa12d0eee4a0f7adcefbf7c878fc2238db3
CPU threads: 10; OS: Mac OS X 12.2; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 8 BogdanB 2023-09-30 19:20:04 UTC
Created attachment 189912 [details]
screenshot

Also with
Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

Regina, just move from Sidebar - Properties - Position and Size one way and another and notice the glue point is not on shape margin anymore. See screenshot.