diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2020-12-24 11:32:51 +1100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-26 19:25:17 +0100 |
commit | b75c9642f0cae522c5cc0f059e801819662b2ddf (patch) | |
tree | 2afc38645359cc5dfd007b94b63117c8c1898239 /svx | |
parent | 43978d8f25a41c20c72d93cc3cb972c93c52674a (diff) |
vcl: use Color:IsTransparent() where appropriate
Change-Id: I37bbab5f22f91faad65be8ef79734ce1ee6355d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108249
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/fntctrl.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdotextdecomposition.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx index 1b2eb421aad3..12afafcb0939 100644 --- a/svx/source/dialog/fntctrl.cxx +++ b/svx/source/dialog/fntctrl.cxx @@ -996,7 +996,7 @@ void SvxFontPrevWindow::SetFromItemSet(const SfxItemSet &rSet, bool bPreviewBack { const SvxBrushItem& rBrush = static_cast<const SvxBrushItem&>( rSet.Get( nWhich ) ); const Color& rColor = rBrush.GetColor(); - bTransparent = rColor.GetTransparency() > 0; + bTransparent = rColor.IsTransparent(); rFont.SetFillColor( rColor ); rCJKFont.SetFillColor( rColor ); rCTLFont.SetFillColor( rColor ); diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx index f95a59f44c80..2661c98b72e5 100644 --- a/svx/source/svdraw/svdotextdecomposition.cxx +++ b/svx/source/svdraw/svdotextdecomposition.cxx @@ -358,7 +358,7 @@ namespace aTextFillColor); } - if (aFontColor.GetTransparency() != 0) + if (aFontColor.IsTransparent()) { // Handle semi-transparent text for both the decorated and simple case here. pNewPrimitive = new drawinglayer::primitive2d::UnifiedTransparencePrimitive2D( |