| commit | 6e12b7f296930c6f37e036407e9fb832d9a9f027 | [log] |
|---|---|---|
| author | sahil <gautamsahil1947@gmail.com> | Mon Jul 31 00:43:00 2023 +0530 |
| committer | Hossein <hossein@libreoffice.org> | Mon Aug 07 02:49:30 2023 +0200 |
| tree | 6506dca8f1d7ca099d9a3fc49a1eda792587e1b2 | |
| parent | c2b8e86b96d8abfbf1758a2b4161fe29735d38de [diff] |
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 <hossein@libreoffice.org>
diff --git a/vcl/source/filter/imet/ios2met.cxx b/vcl/source/filter/imet/ios2met.cxx index fe856c1..e055ea8 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: