diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-02 14:12:20 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-07 10:57:47 +0200 |
commit | 5a3f165b1202a95aabaea037b1dc1e97eb9e31c8 (patch) | |
tree | eb6b9117ae209917091a6cbde63a4195eb6b1067 /drawinglayer | |
parent | e97e59a61f2d74e2cee337ee75d3cc33c0419b77 (diff) |
svx, drawinglayer: handle tools Color <-> BackgroundColorPrimitive2D roundtrip
Change-Id: Ia8c080ef50e1ddbfce17b5c5d357a240edea46f2
(cherry picked from commit b1a9aba3bc33524dcf0dc1c4afc5c1aeeb5ba4d1)
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclpixelprocessor2d.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx index 1240437da19b..a2d9a6981577 100644 --- a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx @@ -1161,7 +1161,9 @@ namespace drawinglayer // create color for fill const basegfx::BColor aPolygonColor(maBColorModifierStack.getModifiedColor(rPrimitive.getBColor())); - mpOutputDevice->SetFillColor(Color(aPolygonColor)); + Color aFillColor(aPolygonColor); + aFillColor.SetTransparency(sal_uInt8((rPrimitive.getTransparency() * 255.0) + 0.5)); + mpOutputDevice->SetFillColor(aFillColor); mpOutputDevice->SetLineColor(); // create rectangle for fill |