tdf#126912: Fix convertsToAtLeast/Most mismatch

...introduced with 2abea7b8799f20ae2f47bb9f938670dea4f4f09f "Fix Clang 10
-Werror,-Wimplicit-int-float-conversion"

Change-Id: Ic1eb21e61695177729305e429a5f17daadaab9ae
Reviewed-on: https://gerrit.libreoffice.org/77447
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 16f202e..3a6e470 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -600,9 +600,9 @@ static void lcl_HandleScrollHelper( ScrollBar* pScrl, double nN, bool isMultiply

            const double fVal = nNewPos - nN;

            if ( !o3tl::convertsToAtMost(fVal, LONG_MIN) )
            if ( !o3tl::convertsToAtLeast(fVal, LONG_MIN) )
                nNewPos = LONG_MIN;
            else if ( !o3tl::convertsToAtLeast(fVal, LONG_MAX) )
            else if ( !o3tl::convertsToAtMost(fVal, LONG_MAX) )
                nNewPos = LONG_MAX;
            else
                nNewPos = static_cast<long>(fVal);