and invalidate held data if u change image file or font (font/size)

SVN revision: 4636
This commit is contained in:
Carsten Haitzler 2001-04-16 19:18:15 +00:00
parent 411ec99a57
commit 47825eb89b
2 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,7 @@ evas_set_image_file(Evas e, Evas_Object o, char *file)
(oo->current.image.h == 0)
)
{
_evas_free_image_renderer_data(e, o);
if (oo->current.file)
free(oo->current.file);
oo->previous.file = NULL;

View File

@ -928,6 +928,7 @@ evas_set_font(Evas e, Evas_Object o, char *font, int size)
if ((oo->current.font) && (!strcmp(oo->current.font, font))
&& (size == oo->current.size))
return;
_evas_free_text_renderer_data(e, o);
if (oo->current.font) free(oo->current.font);
oo->current.font = strdup(font);
oo->previous.font = NULL;