summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-27 09:02:08 +0200
committerNoel Grandin <noel@peralex.com>2015-03-27 09:02:08 +0200
commit3dc9f684b3994bd125b9f27049581aa35b1e52bc (patch)
tree02f100c6f11c244df29c1f9632a47fdb5961360a /vcl
parentconvert GETATTRIBS_ constants to enum class (diff)
downloadcore-3dc9f684b3994bd125b9f27049581aa35b1e52bc.tar.gz
core-3dc9f684b3994bd125b9f27049581aa35b1e52bc.zip
fix tb56 build
Change-Id: I453d6e1840445a03c6918173dc93f32e3028ea74 error: no matching function for call to 'max(int, sal_Int32&)'
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/bitmap/BitmapFilterStackBlur.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/bitmap/BitmapFilterStackBlur.cxx b/vcl/source/bitmap/BitmapFilterStackBlur.cxx
index 126eee0c1f13..bedc2b70f6d0 100644
--- a/vcl/source/bitmap/BitmapFilterStackBlur.cxx
+++ b/vcl/source/bitmap/BitmapFilterStackBlur.cxx
@@ -436,7 +436,7 @@ void stackBlurVertical(
void stackBlur24(Bitmap& rBitmap, sal_Int32 nRadius, sal_Int32 nComponentWidth)
{
// Limit radius
- nRadius = std::min(254, std::max(2, nRadius));
+ nRadius = std::min(254, std::max<sal_Int32>(2, nRadius));
const long nColorChannels = 3; // 3 color channel
BlurSharedData aData(nRadius, nComponentWidth, nColorChannels);