diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-08 14:35:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-08 18:14:17 +0100 |
commit | 498f6f67979f2cb62ca53a42963dc85c6102f179 (patch) | |
tree | f5296ecc96bb5eba9cd6cab79676259b69cb93ac /drawinglayer/source | |
parent | 6911375ab66df6fd4cb2b922ea1c9e57b4fcd3b2 (diff) |
use more IsTransparent
Change-Id: Ice7904f2531dba98101c5f7a05d14702fa897053
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108971
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/tools/emfphelperdata.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx index fcd5697161a0..e8f0688d9cae 100644 --- a/drawinglayer/source/tools/emfphelperdata.cxx +++ b/drawinglayer/source/tools/emfphelperdata.cxx @@ -569,7 +569,7 @@ namespace emfplushelper aStrokeAttribute = drawinglayer::attribute::StrokeAttribute(aPattern); } - if (pen->GetColor().GetTransparency() == 0) + if (!pen->GetColor().IsTransparent()) { mrTargetHolders.Current().append( std::make_unique<drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D>( @@ -691,7 +691,7 @@ namespace emfplushelper if (color.GetTransparency() >= 255) return; - if (color.GetTransparency() == 0) + if (!color.IsTransparent()) { // not transparent mrTargetHolders.Current().append( |