edje_cc: limit map.zoom to non-negative values
authorAndrii Kroitor <an.kroitor@samsung.com>
Mon, 30 Oct 2017 11:51:17 +0000 (13:51 +0200)
committerAndrii Kroitor <an.kroitor@samsung.com>
Mon, 30 Oct 2017 14:44:31 +0000 (16:44 +0200)
@fix

src/bin/edje/edje_cc_handlers.c

index c4606db..2b1bdad 100644 (file)
@@ -14226,7 +14226,7 @@ st_collections_group_parts_part_description_map_zoom_x(void)
 {
    check_arg_count(1);
 
-   current_desc->map.zoom.x = FROM_DOUBLE(parse_float(0));
+   current_desc->map.zoom.x = FROM_DOUBLE(parse_float_range(0, 0.0, 999999999.0));
 }
 
 /**
@@ -14246,7 +14246,7 @@ st_collections_group_parts_part_description_map_zoom_y(void)
 {
    check_arg_count(1);
 
-   current_desc->map.zoom.y = FROM_DOUBLE(parse_float(0));
+   current_desc->map.zoom.y = FROM_DOUBLE(parse_float_range(0, 0.0, 999999999.0));
 }
 
 /** @edcsubsection{collections_group_parts_description_map_rotation,