diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2022-03-28 15:38:48 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-03-29 09:17:42 +0200 |
commit | a2d49b680cd026c3d64683f6ee3ba97e9834a7f7 (patch) | |
tree | 70e17224f86ea2255c24afdd1251c1ca800153f5 /emfio | |
parent | 4cdb50923ed00b9219a9f4cb36693b3a8c444f7c (diff) |
tdf#147906 change sqrt(a * a + b * b) occurences to std::hypot(a, b)
Change-Id: Ic84899bf34f98382e6cc1ffc14310b1667279ee2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132214
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'emfio')
-rw-r--r-- | emfio/source/reader/mtftools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx index 5117411fc54f..b4973f6e51ab 100644 --- a/emfio/source/reader/mtftools.cxx +++ b/emfio/source/reader/mtftools.cxx @@ -1740,7 +1740,7 @@ namespace emfio double fY = aP2.Y(); if ( fX ) { - double fOrientation = basegfx::rad2deg( acos( fX / sqrt( fX * fX + fY * fY ) ) ); + double fOrientation = basegfx::rad2deg(acos(fX / std::hypot(fX, fY))); if ( fY > 0 ) fOrientation = 360 - fOrientation; fOrientation += 90; |