edje: return immediately when setting color class if class is not in use
authorMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 2 Apr 2015 17:05:09 +0000 (13:05 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 2 Apr 2015 19:15:31 +0000 (15:15 -0400)
src/lib/edje/edje_util.c

index 995c4ae..173aec7 100644 (file)
@@ -559,6 +559,7 @@ edje_color_class_set(const char *color_class, int r, int g, int b, int a, int r2
    cc->a3 = a3;
 
    members = eina_hash_find(_edje_color_class_member_hash, color_class);
+   if (!members) return EINA_TRUE;
    it = eina_hash_iterator_data_new(members);
    EINA_ITERATOR_FOREACH(it, er)
      {