elm_map: fix wrong check of source search
authorSungtaek Hong <sth253.hong@samsung.com>
Fri, 5 Aug 2016 06:36:41 +0000 (15:36 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 8 Aug 2016 06:16:53 +0000 (15:16 +0900)
commit2de14b985c7694a70f7395f11eb2fd738fe4f379
tree76959feba682e132203d58586073d4741a433159
parentdd584b9f79ec41b53ca620ae534fcf84f12e30a9
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