forked from enlightenment/efl
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
This commit is contained in:
parent
dd584b9f79
commit
2de14b985c
|
@ -3390,7 +3390,7 @@ _source_tile_set(Elm_Map_Data *sd,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!sd->src_tile)
|
if (!l)
|
||||||
{
|
{
|
||||||
ERR("source name (%s) is not found", source_name);
|
ERR("source name (%s) is not found", source_name);
|
||||||
return;
|
return;
|
||||||
|
@ -3431,7 +3431,7 @@ _source_route_set(Elm_Map_Data *sd,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!sd->src_route)
|
if (!l)
|
||||||
{
|
{
|
||||||
ERR("source name (%s) is not found", source_name);
|
ERR("source name (%s) is not found", source_name);
|
||||||
return;
|
return;
|
||||||
|
@ -3458,7 +3458,7 @@ _source_name_set(Elm_Map_Data *sd,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!sd->src_name)
|
if (!l)
|
||||||
{
|
{
|
||||||
ERR("source name (%s) is not found", source_name);
|
ERR("source name (%s) is not found", source_name);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue