diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2011-09-28 19:54:05 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2011-09-28 19:54:05 +0000 |
| commit | 6c3555c0dea278545b3aa43f753c62fae6e3790a (patch) | |
| tree | 0dbda72ddf0bb98b4caf19f124e8c3cc390b39d2 /src | |
| parent | 0faba4e3cb7b2dd41bd071704209f67462649ebd (diff) | |
STR 2710: limited scheme names to known schemes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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; |
