summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-10-06 15:27:30 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-10-07 12:24:12 +0200
commit617b902fed3cb65f66bafd6868befd08067e1feb (patch)
treee5f311b21f0412f449ab499b5a5eafc9a591ee8b /sfx2
parent4cad7711c35091e90515c446b4cae43c07ab4d90 (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);