From 7ff2c9cfc5fa8c261b1f7f959172f60255fcf617 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 19 Nov 2021 20:04:22 +0300 Subject: Use more basegfx::deg2rad and basegfx::rad2deg Change-Id: I9dc57628b98f67994d546f6887e96389be1efe62 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125568 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sax/source/tools/converter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sax') diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index 69fbc8104cfb..6b6301bac0ff 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -748,7 +748,7 @@ bool Converter::convertAngle(sal_Int16& rAngle, std::u16string_view rString, } else if (std::u16string_view::npos != rString.find(u"rad")) { - nValue = basegfx::rad2deg(fValue) * 10.0; + nValue = basegfx::rad2deg<10>(fValue); } else // no explicit unit { @@ -798,7 +798,7 @@ bool Converter::convertAngle(sal_Int16& rAngle, std::string_view rString, } else if (std::string_view::npos != rString.find("rad")) { - nValue = basegfx::rad2deg(fValue) * 10.0; + nValue = basegfx::rad2deg<10>(fValue); } else // no explicit unit { -- cgit