diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_get_system_colors.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_get_system_colors.cxx b/src/Fl_get_system_colors.cxx index fbd76dd5b..64e2d0933 100644 --- a/src/Fl_get_system_colors.cxx +++ b/src/Fl_get_system_colors.cxx @@ -291,7 +291,9 @@ int Fl::scheme(const char *s) { if (s) { if (!strcasecmp(s, "none") || !strcasecmp(s, "base") || !*s) s = 0; - else s = strdup(s); + else if (!strcasecmp(s, "gtk+")) s = strdup("gtk+"); + else if (!strcasecmp(s, "plastic")) s = strdup("plastic"); + else s = 0; } if (scheme_) free((void*)scheme_); scheme_ = s; |
