Author: matt
Date: 2011-09-28 12:55:24 -0700 (Wed, 28 Sep 2011)
New Revision: 9077
Log:
STR 2710: limited scheme names to known schemes.

Modified:
   branches/branch-3.0/src/fltk3/get_system_colors.cxx

Modified: branches/branch-3.0/src/fltk3/get_system_colors.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/get_system_colors.cxx 2011-09-28 19:54:05 UTC 
(rev 9076)
+++ branches/branch-3.0/src/fltk3/get_system_colors.cxx 2011-09-28 19:55:24 UTC 
(rev 9077)
@@ -300,7 +300,9 @@
 
   if (s) {
     if (!strcasecmp(s, "none") || !strcasecmp(s, "base") || !strcasecmp(s, 
"gtk+") || !*s) s = 0;
-    else s = strdup(s);
+    else if (!strcasecmp(s, "classic")) s = strdup("classic");
+    else if (!strcasecmp(s, "plastic")) s = strdup("plastic");
+    else s = 0;
   }
   if (scheme_) free((void*)scheme_);
   scheme_ = s;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to