diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2023-07-06 01:58:42 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2023-07-06 09:33:52 +0200 |
commit | 619ac8bbb31a62087ac1e3745cc28b461bfb49c0 (patch) | |
tree | c3c4b5d3044c47fbbb37dba899342cbdf4c4c922 /editeng | |
parent | 1e7cab690d238f8e644e28a3de54c4deeec12a23 (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.cxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 2 |
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 ) ) |