vcl/source/window/window2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6d37d3ae03694657a3e808e8395614138161daab Author: Rico Tzschichholz <ric...@ubuntu.com> AuthorDate: Mon Feb 6 19:24:41 2023 +0100 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Wed Oct 9 15:06:29 2024 +0200 vcl: Use fabs() for double argument Change-Id: I959786e42dc576cb72411bacccf1b9bd32fbe21d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173617 Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Tested-by: Jenkins diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 48f4b56dde97..ad54f522d709 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;