Kaydet (Commit) 478133ee authored tarafından Noel Grandin's avatar Noel Grandin

fix std::min issue

some tinderboxes are complaining with:
could not deduce template argument for 'std::initializer_list<_Elem>' from 'int'

Change-Id: Ib6bb1c9958a86fd7bb98d5ce855764f381d2ba43
üst 28a1e1dd
...@@ -436,7 +436,7 @@ void stackBlurVertical( ...@@ -436,7 +436,7 @@ void stackBlurVertical(
void stackBlur24(Bitmap& rBitmap, sal_Int32 nRadius, sal_Int32 nComponentWidth) void stackBlur24(Bitmap& rBitmap, sal_Int32 nRadius, sal_Int32 nComponentWidth)
{ {
// Limit radius // Limit radius
nRadius = std::min(254, std::max<sal_Int32>(2, nRadius)); nRadius = std::min<sal_Int32>(254, std::max<sal_Int32>(2, nRadius));
const long nColorChannels = 3; // 3 color channel const long nColorChannels = 3; // 3 color channel
BlurSharedData aData(nRadius, nComponentWidth, nColorChannels); BlurSharedData aData(nRadius, nComponentWidth, nColorChannels);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment