summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-10-06 15:27:30 +0100
committerAndras Timar <andras.timar@collabora.com>2022-10-16 12:25:55 +0200
commit980dfff5d84d73eef9d1ae83941fbbfda2b24b1c (patch)
treeb172338bd5ef57f763e5f69a4387343002d31780 /sfx2
parente3de54030c84257bd6d3e11ff02bca361b4e7ed1 (diff)
tdf#150622 sidebar icons empty in High Contrast mode
Change-Id: Icfa78f0f655ee467c62cbc309b8e57ac310a73e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140970 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/Tools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/Tools.cxx b/sfx2/source/sidebar/Tools.cxx
index 3c6886630439..727e85a4fac0 100644
--- a/sfx2/source/sidebar/Tools.cxx
+++ b/sfx2/source/sidebar/Tools.cxx
@@ -41,7 +41,7 @@ css::uno::Reference<css::graphic::XGraphic> Tools::GetImage(
const OUString& rsHighContrastImageURL,
const Reference<frame::XFrame>& rxFrame)
{
- if (Theme::IsHighContrastMode())
+ if (Theme::IsHighContrastMode() && !rsHighContrastImageURL.isEmpty())
return GetImage(rsHighContrastImageURL, rxFrame);
else
return GetImage(rsImageURL, rxFrame);