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, 3 insertions, 1 deletions
diff --git a/slideshow/source/engine/shapes/viewshape.cxx b/slideshow/source/engine/shapes/viewshape.cxx
index 9fb337a2967a..e26865accbe8 100644
--- a/slideshow/source/engine/shapes/viewshape.cxx
+++ b/slideshow/source/engine/shapes/viewshape.cxx
@@ -17,7 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+#include <o3tl/clamp.hxx>
#include <tools/diagnose_ex.h>
#include <math.h>
@@ -434,7 +436,7 @@ namespace slideshow
if( mbForceUpdate || (nUpdateFlags & UpdateFlags::Alpha) )
{
mpSprite->setAlpha( (pAttr && pAttr->isAlphaValid()) ?
- ::basegfx::clamp(pAttr->getAlpha(),
+ o3tl::clamp(pAttr->getAlpha(),
0.0,
1.0) :
1.0 );