From 7f633ac437c1ed1880ab801e8d027240074d646b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 3 Jan 2021 18:16:09 +0200 Subject: tdf#139380 tdf#139379 followup regression from commit cf5715da45ddce8b667f1b999d41c4e6e7e65659 Date: Wed Dec 23 09:57:24 2020 +0200 use Degree10 in SdOptionsSnap and fix some conversions Change-Id: Ic760dc74ae6ae1d18b65a3a334f047f10c961343 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108641 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/dlg/tpoption.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx index d57870b171e6..e2abc9565251 100644 --- a/sd/source/ui/dlg/tpoption.cxx +++ b/sd/source/ui/dlg/tpoption.cxx @@ -89,8 +89,8 @@ void SdTpOptionsSnap::Reset( const SfxItemSet* rAttrs ) m_xCbxBigOrtho->set_active( aOptsItem.GetOptionsSnap().IsBigOrtho() ); m_xCbxRotate->set_active( aOptsItem.GetOptionsSnap().IsRotate() ); m_xMtrFldSnapArea->set_value(aOptsItem.GetOptionsSnap().GetSnapArea(), FieldUnit::PIXEL); - m_xMtrFldAngle->set_value(aOptsItem.GetOptionsSnap().GetAngle().get() / 10, FieldUnit::DEGREE); - m_xMtrFldBezAngle->set_value(aOptsItem.GetOptionsSnap().GetEliminatePolyPointLimitAngle().get() / 10, FieldUnit::DEGREE); + m_xMtrFldAngle->set_value(aOptsItem.GetOptionsSnap().GetAngle().get(), FieldUnit::DEGREE); + m_xMtrFldBezAngle->set_value(aOptsItem.GetOptionsSnap().GetEliminatePolyPointLimitAngle().get(), FieldUnit::DEGREE); ClickRotateHdl_Impl(*m_xCbxRotate); } -- cgit v1.2.3