From d765ec2295d12ccde1fb25aa92c5d821de748add Mon Sep 17 00:00:00 2001 From: Noel Date: Mon, 11 Jan 2021 08:54:37 +0200 Subject: transparency->alpha in tools::Color this just changes the Get/Set methods, the constructor and internal representation of Color is not changed. Change-Id: Idb6e07cc08bbaa5bd55b6bd4b585e648aef507b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109074 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/filter/xml/xmlimpit.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/filter/xml') diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx index f41cec7cd206..2d0ea2bc046d 100644 --- a/sw/source/filter/xml/xmlimpit.cxx +++ b/sw/source/filter/xml/xmlimpit.cxx @@ -700,13 +700,13 @@ bool SvXMLImportItemMapper::PutXMLValue( case MID_BACK_COLOR: if( IsXMLToken( rValue, XML_TRANSPARENT ) ) { - rBrush.GetColor().SetTransparency(0xff); + rBrush.GetColor().SetAlpha(0); bOk = true; } else if (::sax::Converter::convertColor(nTempColor, rValue)) { Color aTempColor(nTempColor); - aTempColor.SetTransparency(0); + aTempColor.SetAlpha(255); rBrush.SetColor( aTempColor ); bOk = true; } -- cgit