summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2023-07-06 01:58:42 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2023-07-06 09:33:52 +0200
commit619ac8bbb31a62087ac1e3745cc28b461bfb49c0 (patch)
treec3c4b5d3044c47fbbb37dba899342cbdf4c4c922 /editeng
parent1e7cab690d238f8e644e28a3de54c4deeec12a23 (diff)
tdf#126382 Correct check for transparency
Change-Id: I0664abae6f83736678108fab31dd119fae811054 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154082 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editattr.cxx2
-rw-r--r--editeng/source/editeng/editdoc.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/editattr.cxx b/editeng/source/editeng/editattr.cxx
index 42e5f20206ba..a045f16ade81 100644
--- a/editeng/source/editeng/editattr.cxx
+++ b/editeng/source/editeng/editattr.cxx
@@ -230,7 +230,7 @@ EditCharAttribBackgroundColor::EditCharAttribBackgroundColor(
void EditCharAttribBackgroundColor::SetFont( SvxFont& rFont, OutputDevice* )
{
Color aColor = static_cast<const SvxColorItem*>(GetItem())->GetValue();
- rFont.SetTransparent(aColor == COL_TRANSPARENT);
+ rFont.SetTransparent(aColor.IsTransparent());
rFont.SetFillColor(aColor);
}
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 08750a94fcd2..d4dc4ee16e37 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1998,7 +1998,7 @@ void CreateFont( SvxFont& rFont, const SfxItemSet& rSet, bool bSearchInParent, S
if ( bSearchInParent || ( rSet.GetItemState( EE_CHAR_BKGCOLOR ) == SfxItemState::SET ) )
{
auto& aColor = rSet.Get( EE_CHAR_BKGCOLOR ).GetValue();
- rFont.SetTransparent(aColor == COL_TRANSPARENT);
+ rFont.SetTransparent(aColor.IsTransparent());
rFont.SetFillColor(aColor);
}
if ( bSearchInParent || ( rSet.GetItemState( nWhich_FontHeight ) == SfxItemState::SET ) )