sfx2/source/sidebar/Tools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 617b902fed3cb65f66bafd6868befd08067e1feb Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Oct 6 15:27:30 2022 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Oct 7 12:24:12 2022 +0200 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.st...@allotropia.de> Tested-by: Jenkins 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);