diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-01 12:00:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-01 12:40:03 +0100 |
commit | 3d400321910ff0fe89ab8c70c59432e676cb1340 (patch) | |
tree | b75317083d3a3cc452ad38b095d74f92b51a7923 /filter/source/msfilter/msdffimp.cxx | |
parent | sw HTML export: ReqIf implies we write a fragment (diff) | |
download | core-3d400321910ff0fe89ab8c70c59432e676cb1340.tar.gz core-3d400321910ff0fe89ab8c70c59432e676cb1340.zip |
tdf#116001 Incorrect Colors in Chart Wall Area
regression from
commit b10c7022f1be6e4825269bd5872575b5b53744ef
"use RawBitmap in BPixelRasterToBitmapEx"
we need to implement alpha support in vcl::bitmap::CreateFromData
Change-Id: I68bebbe1dd15e3bb04de312309c1631d6bb7fe2d
Reviewed-on: https://gerrit.libreoffice.org/50556
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source/msfilter/msdffimp.cxx')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 12e8cdb6b005..89404f1a986a 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -1109,7 +1109,7 @@ void ApplyRectangularGradientAsBitmap( const SvxMSDffManager& rManager, SvStream double fFocusX = rManager.GetPropertyValue( DFF_Prop_fillToRight, 0 ) / 65536.0; double fFocusY = rManager.GetPropertyValue( DFF_Prop_fillToBottom, 0 ) / 65536.0; - vcl::bitmap::RawBitmap aBitmap(aBitmapSizePixel); + vcl::bitmap::RawBitmap aBitmap(aBitmapSizePixel, 24); for ( long nY = 0; nY < aBitmapSizePixel.Height(); nY++ ) { @@ -1364,7 +1364,7 @@ void DffPropertyReader::ApplyFillAttributes( SvStream& rIn, SfxItemSet& rSet, co aCol2 = rManager.MSO_CLR_ToColor( GetPropertyValue( DFF_Prop_fillBackColor, 0 ), DFF_Prop_fillBackColor ); // Create a bitmap for the pattern with expected colors - vcl::bitmap::RawBitmap aResult(Size(8, 8)); + vcl::bitmap::RawBitmap aResult(Size(8, 8), 24); { Bitmap::ScopedReadAccess pRead(aBmp); |