summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/shapes/viewshape.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/shapes/viewshape.cxx')
-rw-r--r--slideshow/source/engine/shapes/viewshape.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/slideshow/source/engine/shapes/viewshape.cxx b/slideshow/source/engine/shapes/viewshape.cxx
index 2ab95b9267c0..b89804000ebd 100644
--- a/slideshow/source/engine/shapes/viewshape.cxx
+++ b/slideshow/source/engine/shapes/viewshape.cxx
@@ -19,9 +19,9 @@
#include <sal/config.h>
-#include <o3tl/clamp.hxx>
#include <tools/diagnose_ex.h>
+#include <algorithm>
#include <math.h>
#include <rtl/math.hxx>
@@ -436,7 +436,7 @@ namespace slideshow
if( mbForceUpdate || (nUpdateFlags & UpdateFlags::Alpha) )
{
mpSprite->setAlpha( (pAttr && pAttr->isAlphaValid()) ?
- o3tl::clamp(pAttr->getAlpha(),
+ std::clamp(pAttr->getAlpha(),
0.0,
1.0) :
1.0 );