elm_image: let's not trigger confusing update add.
authorCedric BAIL <cedric@osg.samsung.com>
Mon, 12 Oct 2015 23:00:04 +0000 (16:00 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 12 Oct 2015 23:00:04 +0000 (16:00 -0700)
Elm_Image rely on Evas_Image ability to rotate content. There is no
pixels manipulation involved that require an update_add here. In fact
this cause a bug where the content would disapear due to evas trying
to get some pixels data that are not where it think they are.

src/lib/elm_image.c

index 713ad659238075616f17c9ed9a9b63a398a3aebc..5cfc046486f81c457f8042d69609e9f58ae92ac6 100644 (file)
@@ -1402,8 +1402,6 @@ _elm_image_orient_set(Eo *obj, Elm_Image_Data *sd, Elm_Image_Orient orient)
 
    evas_object_image_orient_set(sd->img, orient);
    sd->orient = orient;
-   evas_object_image_size_get(sd->img, &iw, &ih);
-   evas_object_image_data_update_add(sd->img, 0, 0, iw, ih);
    _elm_image_internal_sizing_eval(obj, sd);
 }