forked from enlightenment/efl
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:
parent
708c537790
commit
0a19a87c0e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue