diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-01-03 09:50:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-03 11:08:57 +0100 |
commit | ceba98a4f7712cf015d27370ef00df003b4955d2 (patch) | |
tree | d54dbccd48d1c03482b3aa67bcfcb05f2b9ed2bf /sd/source/ui/inc/optsitem.hxx | |
parent | 74583d24f67f41d15da211cfb00b7eaa8419e685 (diff) |
tdf#139380 tdf#139379 Constrain object when rotating angle is off by factor 100
regression from
commit cf5715da45ddce8b667f1b999d41c4e6e7e65659
Date: Wed Dec 23 09:57:24 2020 +0200
use Degree10 in SdOptionsSnap and fix some conversions
Change-Id: Ib0bceda9ab13ebd2ad40b7442632af18a1cd1cc4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108607
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/inc/optsitem.hxx')
-rw-r--r-- | sd/source/ui/inc/optsitem.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx index 2e03490950ff..700ace8a1e9f 100644 --- a/sd/source/ui/inc/optsitem.hxx +++ b/sd/source/ui/inc/optsitem.hxx @@ -341,8 +341,8 @@ private: bool bBigOrtho : 1; // Snap/Position/ExtendEdges bool bRotate : 1; // Snap/Position/Rotating sal_Int16 nSnapArea; // Snap/Object/Range - Degree10 nAngle; // Snap/Position/RotatingValue - Degree10 nBezAngle; // Snap/Position/PointReduction + Degree100 nAngle; // Snap/Position/RotatingValue + Degree100 nBezAngle; // Snap/Position/PointReduction protected: @@ -364,8 +364,8 @@ public: bool IsBigOrtho() const { Init(); return bBigOrtho; } bool IsRotate() const { Init(); return bRotate; } sal_Int16 GetSnapArea() const { Init(); return nSnapArea; } - Degree10 GetAngle() const { Init(); return nAngle; } - Degree10 GetEliminatePolyPointLimitAngle() const { Init(); return nBezAngle; } + Degree100 GetAngle() const { Init(); return nAngle; } + Degree100 GetEliminatePolyPointLimitAngle() const { Init(); return nBezAngle; } void SetSnapHelplines( bool bOn ) { if( bSnapHelplines != bOn ) { OptionsChanged(); bSnapHelplines = bOn; } } void SetSnapBorder( bool bOn ) { if( bSnapBorder != bOn ) { OptionsChanged(); bSnapBorder = bOn; } } @@ -375,8 +375,8 @@ public: void SetBigOrtho( bool bOn ) { if( bBigOrtho != bOn ) { OptionsChanged(); bBigOrtho = bOn; } } void SetRotate( bool bOn ) { if( bRotate != bOn ) { OptionsChanged(); bRotate = bOn; } } void SetSnapArea( sal_Int16 nIn ) { if( nSnapArea != nIn ) { OptionsChanged(); nSnapArea = nIn; } } - void SetAngle( Degree10 nIn ) { if( nAngle != nIn ) { OptionsChanged(); nAngle = nIn; } } - void SetEliminatePolyPointLimitAngle( Degree10 nIn ) { if( nBezAngle != nIn ) { OptionsChanged(); nBezAngle = nIn; } } + void SetAngle( Degree100 nIn ) { if( nAngle != nIn ) { OptionsChanged(); nAngle = nIn; } } + void SetEliminatePolyPointLimitAngle( Degree100 nIn ) { if( nBezAngle != nIn ) { OptionsChanged(); nBezAngle = nIn; } } }; class SD_DLLPUBLIC SdOptionsSnapItem : public SfxPoolItem |