svtools/source/graphic/transformer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit b086fe7003ffbf5ef991d8cd88f4b9cde4359996 Author: Muthu Subramanian <sumu...@suse.com> Date: Fri Jul 19 14:20:42 2013 +0530 Re-set bitmap mask after applying the duotone filter. diff --git a/svtools/source/graphic/transformer.cxx b/svtools/source/graphic/transformer.cxx index 18b4721..0b0381b 100644 --- a/svtools/source/graphic/transformer.cxx +++ b/svtools/source/graphic/transformer.cxx @@ -147,10 +147,11 @@ uno::Reference< graphic::XGraphic > SAL_CALL GraphicTransformer::applyDuotone( ::Graphic aGraphic( *::unographic::Graphic::getImplementation( xIFace ) ); BitmapEx aBitmapEx( aGraphic.GetBitmapEx() ); + Bitmap aMask( aBitmapEx.GetMask() ); Bitmap aBitmap( aBitmapEx.GetBitmap() ); BmpFilterParam aFilter( (sal_uLong) nColorOne, (sal_uLong) nColorTwo ); aBitmap.Filter( BMP_FILTER_DUOTONE, &aFilter ); - aGraphic = ::Graphic( BitmapEx( aBitmap ) ); + aGraphic = ::Graphic( BitmapEx( aBitmap, aMask ) ); ::unographic::Graphic* pUnoGraphic = new ::unographic::Graphic(); pUnoGraphic->init( aGraphic ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits