aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubhransu Mohanty <sub.mohanty@samsung.com>2016-08-01 13:24:34 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-08-01 13:24:34 +0900
commite077e923722be0e4a674f0ac3dc07814b3c96003 (patch)
treede33384291108e3a85dc366aced028311c5cfbee
parentedje: Fix handling of polygon and polyline node. (diff)
downloadefl-e077e923722be0e4a674f0ac3dc07814b3c96003.tar.gz
edje: throw error when vector resource not found.
Reviewers: cedric, jpeg Reviewed By: jpeg Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4202
-rw-r--r--src/bin/edje/edje_cc_handlers.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index 6f91af6133..2f6481c656 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -2330,7 +2330,7 @@ _handle_vector_image(void)
name = parse_str(0);
- ed->vg.id = -1;
+ ed->vg.id = 0;
for (i = 0; i < edje_file->image_dir->vectors_count; ++i)
{
@@ -2342,6 +2342,9 @@ _handle_vector_image(void)
}
}
+ if (!ed->vg.id)
+ error_and_abort(NULL, "Failed to find the vector resource :%s", name);
+
free(name);
}