summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-01-11 08:54:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-12 17:38:53 +0100
commitd765ec2295d12ccde1fb25aa92c5d821de748add (patch)
treec2f806389478df23b78319c6043971f92995851c /sw/source/filter/xml
parenta1d6701105456248f6ff39766a6699f26a8f3d60 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml')
-rw-r--r--sw/source/filter/xml/xmlimpit.cxx4
1 files changed, 2 insertions, 2 deletions
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;
}