diff options
Diffstat (limited to 'vcl/unx/generic/dtrans/bmp.cxx')
-rw-r--r-- | vcl/unx/generic/dtrans/bmp.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/unx/generic/dtrans/bmp.cxx b/vcl/unx/generic/dtrans/bmp.cxx index 8b7f342bfbb6..27dbfe579ef2 100644 --- a/vcl/unx/generic/dtrans/bmp.cxx +++ b/vcl/unx/generic/dtrans/bmp.cxx @@ -758,7 +758,8 @@ css::uno::Sequence<sal_Int8> x11::convertBitmapDepth( case 4: { BitmapEx aBmpEx(bm); - BitmapFilter::Filter(aBmpEx, BitmapSimpleColorQuantizationFilter(1<<4)); + BitmapSimpleColorQuantizationFilter filter(1<<4); + BitmapFilter::Filter(aBmpEx, filter); bm = aBmpEx.GetBitmap(); } break; @@ -766,7 +767,8 @@ css::uno::Sequence<sal_Int8> x11::convertBitmapDepth( case 8: { BitmapEx aBmpEx(bm); - BitmapFilter::Filter(aBmpEx, BitmapSimpleColorQuantizationFilter(1<<8)); + BitmapSimpleColorQuantizationFilter filter(1<<8); + BitmapFilter::Filter(aBmpEx, filter); bm = aBmpEx.GetBitmap(); } break; |