sfx2/source/sidebar/Tools.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 28bd6ad2318208644c13d355e91977389053170f
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Oct 6 15:27:30 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Oct 6 17:44:04 2022 +0200

    tdf#150622 sidebar icons empty in High Contrast mode
    
    Change-Id: Icfa78f0f655ee467c62cbc309b8e57ac310a73e7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141021
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

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);

Reply via email to