[Libreoffice-commits] core.git: svtools/source
Muthu Subramanian
sumuthu at suse.com
Fri Jul 19 01:40:37 PDT 2013
svtools/source/graphic/transformer.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit b086fe7003ffbf5ef991d8cd88f4b9cde4359996
Author: Muthu Subramanian <sumuthu at 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 );
More information about the Libreoffice-commits
mailing list