summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--icon-themes/README1
-rw-r--r--vcl/source/app/IconThemeSelector.cxx4
2 files changed, 4 insertions, 1 deletions
diff --git a/icon-themes/README b/icon-themes/README
index fc069f3a7598..e40683d40893 100644
--- a/icon-themes/README
+++ b/icon-themes/README
@@ -24,6 +24,7 @@ How to add a new image set:
scp2 compilation crashes when using a dash '-'.
It evidently splits the name into two strings.
^ It's probably not true anymore with filelists.
+ ^ if this gets changed, IconThemeSelector::SetPreferredIconTheme needs to change too
- Add its name (new_set) to WITH_THEMES variable in configure.ac
diff --git a/vcl/source/app/IconThemeSelector.cxx b/vcl/source/app/IconThemeSelector.cxx
index c9da2d6895c3..3665d1ace8dc 100644
--- a/vcl/source/app/IconThemeSelector.cxx
+++ b/vcl/source/app/IconThemeSelector.cxx
@@ -130,7 +130,9 @@ IconThemeSelector::SetUseHighContrastTheme(bool v)
void
IconThemeSelector::SetPreferredIconTheme(const OUString& theme, bool bDarkIconTheme)
{
- mPreferredIconTheme = theme;
+ // lower case theme name, and (tdf#120175) replace - with _
+ // see icon-themes/README
+ mPreferredIconTheme = theme.toAsciiLowerCase().replace('-','_');
mPreferDarkIconTheme = bDarkIconTheme;
}