diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-01-07 18:21:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-08 09:08:37 +0100 |
commit | bac6c21fb20607db0758210bf9946b46ecbb2a6f (patch) | |
tree | 0b05c5bdfc9ee832249cac998cadc63c82478c6f /include | |
parent | b4951108cfd38ae5d0b0782fba9b382640fdb0b2 (diff) |
use more IsTransparent
Change-Id: I3ef18a2601a51d56614b5da9b56e871bd33ec79e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108942
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/outdev.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index d2e21fb0324c..6daab02f95f1 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -1140,12 +1140,12 @@ public: void SetTextLineColor(); void SetTextLineColor( const Color& rColor ); const Color& GetTextLineColor() const { return maTextLineColor; } - bool IsTextLineColor() const { return (maTextLineColor.GetTransparency() == 0); } + bool IsTextLineColor() const { return !maTextLineColor.IsTransparent(); } void SetOverlineColor(); void SetOverlineColor( const Color& rColor ); const Color& GetOverlineColor() const { return maOverlineColor; } - bool IsOverlineColor() const { return (maOverlineColor.GetTransparency() == 0); } + bool IsOverlineColor() const { return !maOverlineColor.IsTransparent(); } void SetTextAlign( TextAlign eAlign ); TextAlign GetTextAlign() const { return maFont.GetAlignment(); } |