summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorSumit Chauhan <sumitcn25@gmail.com>2018-12-16 14:24:39 +0530
committerHeiko Tietze <tietze.heiko@gmail.com>2018-12-17 10:21:09 +0100
commitb3eb3ef769642b2fa5b9453a8900bcb944643215 (patch)
treed8812bf879cfc8c6a5a81ef285895860c4ebc6d7 /svx
parent3efc0b2fe087fb8c5e0291efbda417b819a43f83 (diff)
tdf#121638 , Different angle shown between sidebar & size and position dialog
Bug solved , Changed the nTmp = 360+nTmp ,if nTmp <0. Change-Id: I855e634540c55ab91e8bbe5824014d304d87c8e9 Reviewed-on: https://gerrit.libreoffice.org/65211 Tested-by: Jenkins Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com> (cherry picked from commit 294c38229a37604fe2d0d82a6ebc7bcd086963f4) Reviewed-on: https://gerrit.libreoffice.org/65224 Tested-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index 1afdf1e725b9..667e7834caa2 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
@@ -682,6 +682,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
if(pItem)
{
long nTmp = pItem->GetValue();
+ nTmp = nTmp < 0 ? 36000+nTmp : nTmp;
mpMtrAngle->SetValue( nTmp );
mpDial->SetRotation( nTmp );