diff options
Diffstat (limited to 'drawinglayer/source/attribute/sdrfillgraphicattribute.cxx')
-rw-r--r-- | drawinglayer/source/attribute/sdrfillgraphicattribute.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drawinglayer/source/attribute/sdrfillgraphicattribute.cxx b/drawinglayer/source/attribute/sdrfillgraphicattribute.cxx index 84fbaea1d998..b88b2a9a31a5 100644 --- a/drawinglayer/source/attribute/sdrfillgraphicattribute.cxx +++ b/drawinglayer/source/attribute/sdrfillgraphicattribute.cxx @@ -17,9 +17,12 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <algorithm> + #include <drawinglayer/attribute/sdrfillgraphicattribute.hxx> #include <drawinglayer/attribute/fillgraphicattribute.hxx> -#include <o3tl/clamp.hxx> #include <rtl/instance.hxx> #include <vcl/graph.hxx> @@ -290,8 +293,8 @@ namespace drawinglayer } // get offset in percent - const double fOffsetX(o3tl::clamp(getOffset().getX() * 0.01, 0.0, 1.0)); - const double fOffsetY(o3tl::clamp(getOffset().getY() * 0.01, 0.0, 1.0)); + const double fOffsetX(std::clamp(getOffset().getX() * 0.01, 0.0, 1.0)); + const double fOffsetY(std::clamp(getOffset().getY() * 0.01, 0.0, 1.0)); // create FillGraphicAttribute return FillGraphicAttribute( |