summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-01-13 15:25:10 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-01-13 16:15:29 +0100
commit8d24ffbb693148fcae25266a289fb5647085ccfd (patch)
tree1b2415efed2adcb85affe82e1edcf9161c2df9e1
parentdc30ef6d7ab9b3a657bf718889828561f58c47d1 (diff)
photocam: force reload of image on file_set.
Thanks, bug reported by thierry@substanciel.fr .
-rw-r--r--src/lib/elm_photocam.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elm_photocam.c b/src/lib/elm_photocam.c
index dc88c0b06..da6ea0900 100644
--- a/src/lib/elm_photocam.c
+++ b/src/lib/elm_photocam.c
@@ -1429,7 +1429,11 @@ _internal_file_set(Eo *obj, Elm_Photocam_Data *sd, const char *file, Eina_File *
1429 int w, h; 1429 int w, h;
1430 double tz; 1430 double tz;
1431 1431
1432 if (!eina_stringshare_replace(&sd->file, file)) return; 1432 // It is actually to late, we have lost the reference to the previous
1433 // file descriptor already, so we can't know if the file changed. To
1434 // be safe we do for now just force a full reload on file_set and hope
1435 // on evas to catch it, if there is no change.
1436 eina_stringshare_replace(&sd->file, file);
1433 sd->f = eina_file_dup(f); 1437 sd->f = eina_file_dup(f);
1434 1438
1435 evas_object_image_smooth_scale_set(sd->img, (sd->no_smooth == 0)); 1439 evas_object_image_smooth_scale_set(sd->img, (sd->no_smooth == 0));