diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2023-07-06 01:58:42 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2023-07-06 09:33:52 +0200 |
commit | 619ac8bbb31a62087ac1e3745cc28b461bfb49c0 (patch) | |
tree | c3c4b5d3044c47fbbb37dba899342cbdf4c4c922 /drawinglayer/source | |
parent | 1e7cab690d238f8e644e28a3de54c4deeec12a23 (diff) |
tdf#126382 Correct check for transparency
Change-Id: I0664abae6f83736678108fab31dd119fae811054
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154082
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/processor2d/vclprocessor2d.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index ad680803438d..3ad89f1cab63 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -185,11 +185,8 @@ void VclProcessor2D::RenderTextSimpleOrDecoratedPortionPrimitive2D( // set FillColor Attribute const Color aFillColor(rTextCandidate.getTextFillColor()); - if (aFillColor != COL_TRANSPARENT) - { - aFont.SetFillColor(aFillColor); - aFont.SetTransparent(false); - } + aFont.SetTransparent(aFillColor.IsTransparent()); + aFont.SetFillColor(aFillColor); // handle additional font attributes const primitive2d::TextDecoratedPortionPrimitive2D* pTCPP = nullptr; |