diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-12-23 14:09:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-24 12:00:07 +0100 |
commit | 88c0e46e139fe44f7f2a6f9fbaa6b3fd7a827a8d (patch) | |
tree | f41e0a3e856a8dd9dba6bbac7d08e62518b53420 /svtools | |
parent | 17aea7c41c95186c03c173a8c6f26cd2ebce4c54 (diff) |
custom literal for Degree10
Change-Id: Id13869138a622e62d9ffebf2c89bddccda6aff01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108238
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/ruler.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index 09c442bee020..2caa18a0f3bc 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -467,9 +467,9 @@ void Ruler::ImplDrawTicks(vcl::RenderContext& rRenderContext, tools::Long nMin, { vcl::Font aFont = rRenderContext.GetFont(); if (mnWinStyle & WB_RIGHT_ALIGNED) - aFont.SetOrientation(Degree10(2700)); + aFont.SetOrientation(2700_deg10); else - aFont.SetOrientation(Degree10(900)); + aFont.SetOrientation(900_deg10); rRenderContext.SetFont(aFont); nTickWidth = aPixSize.Height(); } @@ -1033,7 +1033,7 @@ void Ruler::ImplInitSettings(bool bFont, bool bForeground, bool bBackground) vcl::Font aFont = GetFont(); if (mnWinStyle & WB_VERT) - aFont.SetOrientation(Degree10(900)); + aFont.SetOrientation(900_deg10); maVirDev->SetFont(aFont); maVirDev->SetTextColor(GetTextColor()); |