summaryrefslogtreecommitdiff
path: root/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-09-11 11:48:30 +0900
committerHermet Park <chuneon.park@samsung.com>2020-09-11 11:48:30 +0900
commitfbf8db3699b65a04a7a6e1e270bcb8f78544dc9d (patch)
tree13de628a732e64ae3b55f80417a7a52931f4ff98 /src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
parent0e01e9778c40160d8244d05db84e27b30244cd24 (diff)
vg_load_svg: Fix missing loader.gradients update
Summary: When both <defs> and <svg> gradients are declared, the update of gradient declared in is omitted. Therefore, this patch fixes any missing gradient updates. Test Plan: N/A Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: #reviewers, #committers, cedric, herb, kimcinoo Tags: #efl Differential Revision: https://phab.enlightenment.org/D12138
Diffstat (limited to '')
-rw-r--r--src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
index d4ea28659c..ea19f2d122 100644
--- a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
+++ b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
@@ -2466,14 +2466,11 @@ evas_vg_load_file_open_svg(Eina_File *file,
2466 defs = loader.doc->node.doc.defs; 2466 defs = loader.doc->node.doc.defs;
2467 if (defs) 2467 if (defs)
2468 _update_gradient(loader.doc, defs->node.defs.gradients); 2468 _update_gradient(loader.doc, defs->node.defs.gradients);
2469 else 2469 if (loader.gradients)
2470 { 2470 {
2471 if (loader.gradients) 2471 Eina_List* gradient_list = loader.gradients;
2472 { 2472 _update_gradient(loader.doc, gradient_list);
2473 Eina_List* gradient_list = loader.gradients; 2473 eina_list_free(gradient_list);
2474 _update_gradient(loader.doc, gradient_list);
2475 eina_list_free(gradient_list);
2476 }
2477 } 2474 }
2478 2475
2479 *error = EVAS_LOAD_ERROR_NONE; 2476 *error = EVAS_LOAD_ERROR_NONE;