Evas image: Return proper path even with mmap

Since we're using a union (u.{f,file} we can't just
return u.file when the file was set as an mmap source.

@fix
This commit is contained in:
Jean-Philippe Andre 2015-04-10 16:18:54 +09:00
parent 708c537790
commit 0a19a87c0e
1 changed files with 7 additions and 1 deletions

View File

@ -607,7 +607,13 @@ _evas_image_efl_file_file_set(Eo *eo_obj, Evas_Image_Data *o, const char *file,
EOLIAN static void
_evas_image_efl_file_file_get(Eo *eo_obj EINA_UNUSED, Evas_Image_Data *o, const char **file, const char **key)
{
if (file) *file = o->cur->u.file;
if (file)
{
if (o->cur->mmaped_source)
*file = eina_file_filename_get(o->cur->u.f);
else
*file = o->cur->u.file;
}
if (key) *key = o->cur->key;
}