summaryrefslogtreecommitdiffstats
path: root/canvas/source/vcl/canvashelper_texturefill.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/vcl/canvashelper_texturefill.cxx')
-rw-r--r--canvas/source/vcl/canvashelper_texturefill.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx
index 81d97138b22c..501e91f2782c 100644
--- a/canvas/source/vcl/canvashelper_texturefill.cxx
+++ b/canvas/source/vcl/canvashelper_texturefill.cxx
@@ -19,6 +19,7 @@
#include <sal/config.h>
+#include <cstdlib>
#include <tuple>
#include <basegfx/matrix/b2dhommatrix.hxx>
@@ -427,10 +428,10 @@ namespace vclcanvas
int numColorSteps( const ::Color& rColor1, const ::Color& rColor2 )
{
return std::max(
- labs( rColor1.GetRed() - rColor2.GetRed() ),
+ std::abs( rColor1.GetRed() - rColor2.GetRed() ),
std::max(
- labs( rColor1.GetGreen() - rColor2.GetGreen() ),
- labs( rColor1.GetBlue() - rColor2.GetBlue() ) ) );
+ std::abs( rColor1.GetGreen() - rColor2.GetGreen() ),
+ std::abs( rColor1.GetBlue() - rColor2.GetBlue() ) ) );
}
bool gradientFill( OutputDevice& rOutDev,