summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2020-01-17 10:48:24 +0900
committerHermet Park <hermetpark@gmail.com>2020-01-17 10:48:24 +0900
commit0a61d5a44bfdd27a4644592502a31e5784358347 (patch)
treead6729a68bcbe1d2bc80de6aee6afa1d5e884798
parentbdaf20fb4c4bca57c165fc3a7126b3963306750a (diff)
canvas vector: fix to refresh svg file of vector object.
previously, svg file is not refreshed though the file is changed. Let changed flag true properly to re-render properly. @fix
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_object.c3
-rw-r--r--src/lib/evas/vg/evas_vg_cache.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_vg_object.c b/src/lib/evas/canvas/efl_canvas_vg_object.c
index 60008de27a..cccd9e2c6b 100644
--- a/src/lib/evas/canvas/efl_canvas_vg_object.c
+++ b/src/lib/evas/canvas/efl_canvas_vg_object.c
@@ -263,11 +263,13 @@ _efl_canvas_vg_object_efl_file_file_set(Eo *eo_obj, Efl_Canvas_Vg_Object_Data *p
263 evas_object_change(eo_obj, obj); 263 evas_object_change(eo_obj, obj);
264 pd->vg_entry = NULL; 264 pd->vg_entry = NULL;
265 evas_object_change(eo_obj, obj); 265 evas_object_change(eo_obj, obj);
266 pd->changed = EINA_TRUE;
266 } 267 }
267 } 268 }
268 269
269 Eina_Error err; 270 Eina_Error err;
270 err = efl_file_set(efl_super(eo_obj, MY_CLASS), file); 271 err = efl_file_set(efl_super(eo_obj, MY_CLASS), file);
272
271 if (err) return err; 273 if (err) return err;
272 274
273 return 0; 275 return 0;
@@ -292,6 +294,7 @@ _efl_canvas_vg_object_efl_file_load(Eo *eo_obj, Efl_Canvas_Vg_Object_Data *pd)
292 obj->cur->geometry.w, 294 obj->cur->geometry.w,
293 obj->cur->geometry.h, NULL); 295 obj->cur->geometry.h, NULL);
294 evas_object_change(eo_obj, obj); 296 evas_object_change(eo_obj, obj);
297 pd->changed = EINA_TRUE;
295 298
296 return 0; 299 return 0;
297} 300}
diff --git a/src/lib/evas/vg/evas_vg_cache.c b/src/lib/evas/vg/evas_vg_cache.c
index c980046ff1..8b748ca5ee 100644
--- a/src/lib/evas/vg/evas_vg_cache.c
+++ b/src/lib/evas/vg/evas_vg_cache.c
@@ -380,7 +380,6 @@ evas_cache_vg_entry_create(Evas *evas,
380 } 380 }
381 eina_strbuf_free(hash_key); 381 eina_strbuf_free(hash_key);
382 vg_entry->ref++; 382 vg_entry->ref++;
383
384 vg_entry->vfd = evas_cache_vg_file_open(file, key, vg_entry->evas); 383 vg_entry->vfd = evas_cache_vg_file_open(file, key, vg_entry->evas);
385 //No File?? 384 //No File??
386 if (!vg_entry->vfd) 385 if (!vg_entry->vfd)