jpeg pushed a commit to branch master.

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

commit 2de14b985c7694a70f7395f11eb2fd738fe4f379
Author: Sungtaek Hong <[email protected]>
Date:   Fri Aug 5 15:36:41 2016 +0900

    elm_map: fix wrong check of source search
    
    Summary:
    When map source is set by elm_map_source_set(),
    it foreaches enlisted sources, and should return
    when the source cannot be found.
    
    @fix
    
    Test Plan:
    Call elm_map_source_set(map, [any type], [Wrong source name]);
             Observe  ERR("source name (%s) is not found", source_name) message.
    
    Reviewers: Hermet, cedric, jpeg
    
    Reviewed By: jpeg
    
    Subscribers: conr2d
    
    Differential Revision: https://phab.enlightenment.org/D4212
---
 src/lib/elementary/elm_map.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/elementary/elm_map.c b/src/lib/elementary/elm_map.c
index 346d49e..7c6fc88 100644
--- a/src/lib/elementary/elm_map.c
+++ b/src/lib/elementary/elm_map.c
@@ -3390,7 +3390,7 @@ _source_tile_set(Elm_Map_Data *sd,
              break;
           }
      }
-   if (!sd->src_tile)
+   if (!l)
      {
         ERR("source name (%s) is not found", source_name);
         return;
@@ -3431,7 +3431,7 @@ _source_route_set(Elm_Map_Data *sd,
              break;
           }
      }
-   if (!sd->src_route)
+   if (!l)
      {
         ERR("source name (%s) is not found", source_name);
         return;
@@ -3458,7 +3458,7 @@ _source_name_set(Elm_Map_Data *sd,
              break;
           }
      }
-   if (!sd->src_name)
+   if (!l)
      {
         ERR("source name (%s) is not found", source_name);
         return;

-- 


Reply via email to