jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=abd71b2cfc004e2b607b03d8d5b39597c7e2ece8

commit abd71b2cfc004e2b607b03d8d5b39597c7e2ece8
Author: se.osadchy <se.osad...@samsung.com>
Date:   Wed Apr 19 14:45:04 2017 +0900

    elm_map: Fix elm_map_overlay_color_get
    
    Summary:
    Add all supports types for overlay color (such as in Doc.)
    @fix
    
    Reviewers: cedric, Hermet, raster, NikaWhite, jpeg
    
    Reviewed By: jpeg
    
    Subscribers: jpeg, artem.popov
    
    Differential Revision: https://phab.enlightenment.org/D4800
---
 src/lib/elementary/elm_map.c | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/src/lib/elementary/elm_map.c b/src/lib/elementary/elm_map.c
index ebcc32f..e633adb 100644
--- a/src/lib/elementary/elm_map.c
+++ b/src/lib/elementary/elm_map.c
@@ -5202,14 +5202,21 @@ elm_map_overlay_color_get(const Elm_Map_Overlay 
*overlay,
    EINA_SAFETY_ON_NULL_RETURN(overlay->wsd);
    ELM_MAP_CHECK((overlay->wsd)->obj);
 
-   if (overlay->type == ELM_MAP_OVERLAY_TYPE_ROUTE)
+   switch (overlay->type)
      {
-        if (r) *r = overlay->c.r;
-        if (g) *g = overlay->c.g;
-        if (b) *b = overlay->c.b;
-        if (a) *a = overlay->c.a;
+        case ELM_MAP_OVERLAY_TYPE_ROUTE:
+        case ELM_MAP_OVERLAY_TYPE_DEFAULT:
+        case ELM_MAP_OVERLAY_TYPE_CLASS:
+           if (r) *r = overlay->c.r;
+           if (g) *g = overlay->c.g;
+           if (b) *b = overlay->c.b;
+           if (a) *a = overlay->c.a;
+           break;
+
+        default:
+           ERR("Not supported overlay type: %d", overlay->type);
+           break;
      }
-   else ERR("Not supported overlay type: %d", overlay->type);
 }
 
 EAPI void

-- 


Reply via email to