vcl/source/filter/imet/ios2met.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6e12b7f296930c6f37e036407e9fb832d9a9f027
Author:     sahil <gautamsahil1...@gmail.com>
AuthorDate: Mon Jul 31 00:43:00 2023 +0530
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Mon Aug 7 02:49:30 2023 +0200

    tdf#147906 used std::hypot for Pythagorean addition
    
    Change-Id: I8a926c621dee746e47ebdaaff4e0c558d7a7e6a6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155073
    Tested-by: Jenkins
    Reviewed-by: Hossein <hoss...@libreoffice.org>

diff --git a/vcl/source/filter/imet/ios2met.cxx 
b/vcl/source/filter/imet/ios2met.cxx
index fe856c1d7bb6..e055ea83824a 100644
--- a/vcl/source/filter/imet/ios2met.cxx
+++ b/vcl/source/filter/imet/ios2met.cxx
@@ -1124,7 +1124,7 @@ void OS2METReader::ReadArc(bool bGivenPos)
          p*p*((y3*y3-y1*y1)*(x2-x1)+(y2*y2-y1*y1)*(x1-x3)) ) / ncy;
     cx=( q*q*(x2*x2-x1*x1)+p*p*(y2*y2-y1*y1)+cy*2*p*p*(y1-y2) ) / ncx;
     // now we still need the radius in x and y direction:
-    r=sqrt(q*q*(x1-cx)*(x1-cx)+p*p*(y1-cy)*(y1-cy));
+    r=hypot(q*(x1-cx), p*(y1-cy));
     rx=r/q; ry=r/p;
     // We now have to find out how the starting and the end point
     // have to be chosen so that point no. 2 lies inside the drawn arc:

Reply via email to