| commit | 28bd6ad2318208644c13d355e91977389053170f | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Thu Oct 06 15:27:30 2022 +0100 |
| committer | Caolán McNamara <caolanm@redhat.com> | Thu Oct 06 17:44:04 2022 +0200 |
| tree | e2ff0fd4472219f9ef69b42e844b979ebc1aff83 | |
| parent | 21f3aebd6ea00d9cc344b46049b8097ad988401b [diff] |
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 <caolanm@redhat.com>
diff --git a/sfx2/source/sidebar/Tools.cxx b/sfx2/source/sidebar/Tools.cxx index 3c68866..727e85a 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);