summaryrefslogtreecommitdiff
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
parent7af272d93ce49bcddb4f5171da1180a2157bf6c9 (diff)
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)
2330 2330
2331 name = parse_str(0); 2331 name = parse_str(0);
2332 2332
2333 ed->vg.id = -1; 2333 ed->vg.id = 0;
2334 2334
2335 for (i = 0; i < edje_file->image_dir->vectors_count; ++i) 2335 for (i = 0; i < edje_file->image_dir->vectors_count; ++i)
2336 { 2336 {
@@ -2342,6 +2342,9 @@ _handle_vector_image(void)
2342 } 2342 }
2343 } 2343 }
2344 2344
2345 if (!ed->vg.id)
2346 error_and_abort(NULL, "Failed to find the vector resource :%s", name);
2347
2345 free(name); 2348 free(name);
2346} 2349}
2347 2350