diff options
Diffstat (limited to 'sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx b/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx index 46293b1b7981..a219a9c2ebf4 100644 --- a/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx +++ b/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <o3tl/safeint.hxx> + #include <controller/SlsAnimationFunction.hxx> namespace sd::slidesorter::controller { @@ -114,7 +118,7 @@ double AnimationParametricFunction::operator() (const double nX) if (nIndex0<=0) return maY[0]; - else if (sal_uInt32(nIndex0)>=maY.size() || nIndex1>=maY.size()) + else if (o3tl::make_unsigned(nIndex0)>=maY.size() || nIndex1>=maY.size()) return maY[maY.size()-1]; const double nU ((nX-nX1) / (nX0 - nX1)); |