rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=2f9a219253ef58104ec31a3db7792e28a1b93283

commit 2f9a219253ef58104ec31a3db7792e28a1b93283
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Wed Jan 27 18:07:15 2016 +0000

    property_group: fix wrong property colorclass preview on colorclass 
selection
---
 src/bin/ui/property_group.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/bin/ui/property_group.c b/src/bin/ui/property_group.c
index a2d43e9..1b1d563 100644
--- a/src/bin/ui/property_group.c
+++ b/src/bin/ui/property_group.c
@@ -2720,11 +2720,10 @@ _on_state_color_class_change(void *data,
                                    pd->part->current_state->parsed_name,
                                    pd->part->current_state->parsed_val,
                                    value);
-
-   if (edje_edit_color_class_colors_get(pd->group->edit_object, item->title,
-                                        &r, &g, &b, &a,
-                                        &r2, &g2, &b2, &a2,
-                                        &r3, &g3, &b3, &a3))
+   if (value && edje_edit_color_class_colors_get(pd->group->edit_object, value,
+                                                 &r, &g, &b, &a,
+                                                 &r2, &g2, &b2, &a2,
+                                                 &r3, &g3, &b3, &a3))
      {
         evas_object_color_set(pd->attributes.state.color1, r * a / 255, g * a 
/ 255, b * a / 255, a);
         evas_object_color_set(pd->attributes.state.color2, r2 * a2 / 255, g2 * 
a2 / 255, b2 * a2 / 255, a2);

-- 


Reply via email to