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 /svx/source/tbxctrls/tbcontrl.cxx | |
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 'svx/source/tbxctrls/tbcontrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 052d8558386b..da8493c75059 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -2349,7 +2349,7 @@ void ColorWindow::SelectEntry(const NamedColor& rNamedColor) const Color &rColor = rNamedColor.m_aColor; - if (mxButtonAutoColor->get_visible() && (rColor == COL_TRANSPARENT || rColor == COL_AUTO)) + if (mxButtonAutoColor->get_visible() && rColor.IsFullyTransparent()) { mpDefaultButton = mxButtonAutoColor.get(); return; |