STR 2771 fix cont'd used the new api in scheme(const char*)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9369 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Fabien Costantini 2012-04-21 17:40:07 +00:00
parent 56a184d529
commit 1b01c3a94c

View File

@ -290,9 +290,9 @@ int Fl::scheme(const char *s) {
}
if (s) {
if (!strcasecmp(s, "none") || !strcasecmp(s, "base") || !*s) s = 0;
else if (!strcasecmp(s, "gtk+")) s = strdup("gtk+");
else if (!strcasecmp(s, "plastic")) s = strdup("plastic");
if (!fl_ascii_strcasecmp(s, "none") || !fl_ascii_strcasecmp(s, "base") || !*s) s = 0;
else if (!fl_ascii_strcasecmp(s, "gtk+")) s = strdup("gtk+");
else if (!fl_ascii_strcasecmp(s, "plastic")) s = strdup("plastic");
else s = 0;
}
if (scheme_) free((void*)scheme_);