summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-08 14:41:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-08 21:29:19 +0200
commit126818d293982e578dfb4d977ee0ea64a1cff0de (patch)
tree2602b0b176cf6d3e321b8fddbc18d840184454c6 /oox
parent31bd8c4a4a4752dcff12ee35636193f79a6d6137 (diff)
no need to use AlphaMask in DrawingML::WriteParagraphNumbering
since we're just setting it to fully opaque Change-Id: I53e2d45c98e6ac45cba74552d783f5d12df1058b Reviewed-on: https://gerrit.libreoffice.org/75225 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 08cbf8b796fd..be4ee5225a6b 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -2254,12 +2254,10 @@ void DrawingML::WriteParagraphNumbering(const Reference< XPropertySet >& rXPropS
long nPaddingY = std::lround((aDestSize.Height() - fBulletSizeRel * aDestSize.Height()) / 2.f);
tools::Rectangle aDestRect(nPaddingX, nPaddingY, aDestSize.Width() - nPaddingX, aDestSize.Height() - nPaddingY);
- AlphaMask aMask(aDestSize);
- aMask.Erase(255);
BitmapEx aSourceBitmap(aGraphic.GetBitmapEx());
aSourceBitmap.Scale(aDestRect.GetSize());
tools::Rectangle aSourceRect(Point(0, 0), aDestRect.GetSize());
- BitmapEx aDestBitmap(Bitmap(aDestSize, 24), aMask);
+ BitmapEx aDestBitmap(aDestSize, 24);
aDestBitmap.CopyPixel(aDestRect, aSourceRect, &aSourceBitmap);
Graphic aDestGraphic(aDestBitmap);
sRelationId = WriteImage(aDestGraphic);