| commit | 3d8fd5c90b12d17cf6c3c51aada9321afdaa2e98 | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Thu Oct 06 15:27:30 2022 +0100 |
| committer | Michael Stahl <michael.stahl@allotropia.de> | Fri Oct 07 10:50:55 2022 +0200 |
| tree | 3a6ad5f56816798ea70201b6831326123ea8d4ce | |
| parent | d3135585b848b89aba48d75a8348e9ec0f1ea339 [diff] |
tdf#150622 sidebar icons empty in High Contrast mode Change-Id: Icfa78f0f655ee467c62cbc309b8e57ac310a73e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140969 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
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);