diff options
author | Hossein <hossein@libreoffice.org> | 2021-11-09 13:25:37 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-15 07:56:51 +0100 |
commit | 52ad81c74887e5c4d9a8c0a3cc8a11e3785cb72c (patch) | |
tree | 2da40649e358d7b80b68cbcf63a5debb27b10329 /emfio/source/reader/mtftools.cxx | |
parent | 7a0d3ed55c5b6ebda129d66574d78168ca29135b (diff) |
Use basegfx::rad2deg() instead of *57.29577951308
* Replaced multiplying by magic number 57.29577951308 with
basegfx::rad2deg() which is equal to 180.0/M_PI
* Instances of this could be found using:
git grep 57.29577951308 *.cxx *.hxx
Change-Id: I0ae99a5d63d104b79c6df2dc88e9dda6973a1d3b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124226
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'emfio/source/reader/mtftools.cxx')
-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 204a598d4550..8e38e4e5b286 100644 --- a/emfio/source/reader/mtftools.cxx +++ b/emfio/source/reader/mtftools.cxx @@ -1733,7 +1733,7 @@ namespace emfio double fY = aP2.Y(); if ( fX ) { - double fOrientation = acos( fX / sqrt( fX * fX + fY * fY ) ) * 57.29577951308; + double fOrientation = basegfx::rad2deg( acos( fX / sqrt( fX * fX + fY * fY ) ) ); if ( fY > 0 ) fOrientation = 360 - fOrientation; fOrientation += 90; |