diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-19 20:04:22 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-19 19:33:53 +0100 |
commit | 7ff2c9cfc5fa8c261b1f7f959172f60255fcf617 (patch) | |
tree | 97f31f71314f88e81c99a66d205b951f3ddf2d47 /sax | |
parent | f8790b1d586b3865cfdc56e8f4cdab55a8617769 (diff) |
Use more basegfx::deg2rad<N> and basegfx::rad2deg<N>
Change-Id: I9dc57628b98f67994d546f6887e96389be1efe62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125568
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/converter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |