summaryrefslogtreecommitdiffstats
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-12 16:08:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-12 19:00:00 +0200
commit203e3099c17bf245f8fcd52c32c58d47bd241c2b (patch)
tree805b01deb02d3bc88582fb4812b4d94c94e65d03 /canvas
parentmake AlphaMask constructors explicit (diff)
downloadcore-203e3099c17bf245f8fcd52c32c58d47bd241c2b.tar.gz
core-203e3099c17bf245f8fcd52c32c58d47bd241c2b.zip
make Bitmap/BitmapEx constructors explicit
and add BitmapEx::operator=(Bitmap const &) Image::Image(Bitmap const &) to lessen the fallout Change-Id: Iff5fab88d167a7be739c370c9933d36c297bc61c Reviewed-on: https://gerrit.libreoffice.org/54162 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/vcl/canvashelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/vcl/canvashelper.cxx b/canvas/source/vcl/canvashelper.cxx
index c0dd0717a965..d31a45286dc3 100644
--- a/canvas/source/vcl/canvashelper.cxx
+++ b/canvas/source/vcl/canvashelper.cxx
@@ -912,7 +912,7 @@ namespace vclcanvas
beFast ? BmpScaleFlag::Default : BmpScaleFlag::BestQuality );
return uno::Reference< rendering::XBitmap >(
- new CanvasBitmap( aBitmap, *mpDevice, mpOutDevProvider ) );
+ new CanvasBitmap( BitmapEx(aBitmap), *mpDevice, mpOutDevProvider ) );
}
uno::Sequence< sal_Int8 > CanvasHelper::getData( rendering::IntegerBitmapLayout& rLayout,