summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/Tools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/sidebar/Tools.cxx')
-rw-r--r--sfx2/source/sidebar/Tools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/Tools.cxx b/sfx2/source/sidebar/Tools.cxx
index eb936c4ff412..382914d8baba 100644
--- a/sfx2/source/sidebar/Tools.cxx
+++ b/sfx2/source/sidebar/Tools.cxx
@@ -67,7 +67,7 @@ css::awt::Gradient Tools::VclToAwtGradient (const Gradient& rVclGradient)
awt::GradientStyle(rVclGradient.GetStyle()),
sal_Int32(rVclGradient.GetStartColor().GetRGBColor()),
sal_Int32(rVclGradient.GetEndColor().GetRGBColor()),
- rVclGradient.GetAngle(),
+ rVclGradient.GetAngle().get(),
rVclGradient.GetBorder(),
rVclGradient.GetOfsX(),
rVclGradient.GetOfsY(),
@@ -83,7 +83,7 @@ Gradient Tools::AwtToVclGradient (const css::awt::Gradient& rAwtGradient)
GradientStyle(rAwtGradient.Style),
Color(rAwtGradient.StartColor),
Color(rAwtGradient.EndColor));
- aVclGradient.SetAngle(rAwtGradient.Angle);
+ aVclGradient.SetAngle(Degree10(rAwtGradient.Angle));
aVclGradient.SetBorder(rAwtGradient.Border);
aVclGradient.SetOfsX(rAwtGradient.XOffset);
aVclGradient.SetOfsY(rAwtGradient.YOffset);