summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-01-08 14:35:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-08 18:14:17 +0100
commit498f6f67979f2cb62ca53a42963dc85c6102f179 (patch)
treef5296ecc96bb5eba9cd6cab79676259b69cb93ac /sc
parent6911375ab66df6fd4cb2b922ea1c9e57b4fcd3b2 (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 'sc')
-rw-r--r--sc/source/ui/view/output.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index dc054dae86c0..7dc9cd1ded95 100644
--- a/sc/source/ui/view/output.cxx
+++ b/sc/source/ui/view/output.cxx
@@ -1639,7 +1639,7 @@ void ScOutputData::DrawRotatedFrame(vcl::RenderContext& rRenderContext)
// for DrawPolygon, without Pen one pixel is left out
// to the right and below...
- if (rColor.GetTransparency() == 0)
+ if (!rColor.IsTransparent())
rRenderContext.SetLineColor(rColor);
else
rRenderContext.SetLineColor();
@@ -1655,7 +1655,7 @@ void ScOutputData::DrawRotatedFrame(vcl::RenderContext& rRenderContext)
// for DrawPolygon, without Pen one pixel is left out
// to the right and below...
- if (pColor->GetTransparency() == 0)
+ if (!pColor->IsTransparent())
rRenderContext.SetLineColor(*pColor);
else
rRenderContext.SetLineColor();