From 52ad81c74887e5c4d9a8c0a3cc8a11e3785cb72c Mon Sep 17 00:00:00 2001 From: Hossein Date: Tue, 9 Nov 2021 13:25:37 +0100 Subject: 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 Tested-by: Jenkins --- emfio/source/reader/mtftools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emfio/source') 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; -- cgit