vcl/source/window/window2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 506645679bcd7fc8aa6a9cba85b7a35e1ef4190a Author: Rico Tzschichholz <ric...@ubuntu.com> AuthorDate: Mon Feb 6 19:24:41 2023 +0100 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Mon Oct 14 06:07:13 2024 +0200 vcl: Use fabs() for double argument Change-Id: I959786e42dc576cb72411bacccf1b9bd32fbe21d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173625 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index ceaebf52bea8..b823ea099595 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -632,7 +632,7 @@ static double lcl_HandleScrollHelper( Scrollable* pScrl, double nN, bool isMulti } // compute how many quantized units to scroll - tools::Long magnitude = o3tl::saturating_cast<tools::Long>(abs(nN)); + tools::Long magnitude = o3tl::saturating_cast<tools::Long>(fabs(nN)); tools::Long change = copysign(magnitude, nN); nNewPos = nNewPos - change;