From 5c9ace48f05269c50d57642256153450335ace5f Mon Sep 17 00:00:00 2001 From: Noel Date: Fri, 8 Jan 2021 14:48:34 +0200 Subject: Introduce Color::IsFullyTransparent Change-Id: I94875b9fb7ee18edf63ed28902da4ae77eb14bb0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108973 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/gdi/print2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/source') diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx index 005d65c49039..36e4f4285e43 100644 --- a/vcl/source/gdi/print2.cxx +++ b/vcl/source/gdi/print2.cxx @@ -256,8 +256,8 @@ void ImplConvertTransparentAction( GDIMetaFile& o_rMtf, // Returns true, if given action creates visible (i.e. non-transparent) output bool ImplIsNotTransparent( const MetaAction& rAct, const OutputDevice& rOut ) { - const bool bLineTransparency( !rOut.IsLineColor() || rOut.GetLineColor().GetTransparency() == 255 ); - const bool bFillTransparency( !rOut.IsFillColor() || rOut.GetFillColor().GetTransparency() == 255 ); + const bool bLineTransparency( !rOut.IsLineColor() || rOut.GetLineColor().IsFullyTransparent() ); + const bool bFillTransparency( !rOut.IsFillColor() || rOut.GetFillColor().IsFullyTransparent() ); bool bRet( false ); switch( rAct.GetType() ) -- cgit