summaryrefslogtreecommitdiff
path: root/drawinglayer/source/texture/texture3d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source/texture/texture3d.cxx')
-rw-r--r--drawinglayer/source/texture/texture3d.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/drawinglayer/source/texture/texture3d.cxx b/drawinglayer/source/texture/texture3d.cxx
index 68d2826bfa46..74c0766ad51c 100644
--- a/drawinglayer/source/texture/texture3d.cxx
+++ b/drawinglayer/source/texture/texture3d.cxx
@@ -17,8 +17,11 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <algorithm>
+
#include <drawinglayer/texture/texture3d.hxx>
-#include <o3tl/clamp.hxx>
#include <vcl/bitmapaccess.hxx>
#include <drawinglayer/primitive3d/hatchtextureprimitive3d.hxx>
#include <sal/log.hxx>
@@ -289,8 +292,8 @@ namespace drawinglayer
double fOffsetX,
double fOffsetY)
: GeoTexSvxBitmapEx(rBitmapEx, rRange),
- mfOffsetX(o3tl::clamp(fOffsetX, 0.0, 1.0)),
- mfOffsetY(o3tl::clamp(fOffsetY, 0.0, 1.0)),
+ mfOffsetX(std::clamp(fOffsetX, 0.0, 1.0)),
+ mfOffsetY(std::clamp(fOffsetY, 0.0, 1.0)),
mbUseOffsetX(!basegfx::fTools::equalZero(mfOffsetX)),
mbUseOffsetY(!mbUseOffsetX && !basegfx::fTools::equalZero(mfOffsetY))
{