vcl/source/window/window2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b344877e37fc7f78625af4a9bf2b69ad61cced7b 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:05:00 2024 +0200 vcl: Use fabs() for double argument Change-Id: I959786e42dc576cb72411bacccf1b9bd32fbe21d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173626 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index c17232fcbeab..0ae442b03a53 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;