evas: always set degre to zero before using it.
authorCedric Bail <cedric.bail@samsung.com>
Mon, 20 May 2013 10:23:36 +0000 (19:23 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Tue, 21 May 2013 00:58:24 +0000 (09:58 +0900)
src/lib/evas/canvas/evas_object_image.c

index 09269e0..5f601e1 100644 (file)
@@ -185,7 +185,7 @@ static const Evas_Object_Func object_func =
 };
 
 static const Evas_Object_Image_Load_Opts default_load_opts = {
-  0, 0, 0, 0, { 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0 }, 0
+  0, 0.0, 0, 0, { 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0 }, 0
 };
 
 static const Evas_Object_Image_Pixels default_pixels = {
@@ -534,6 +534,7 @@ _image_init_set(Eina_File *f, const char *file, const char *key,
    lo->scale_load.smooth = o->load_opts->scale_load.smooth;
    lo->scale_load.scale_hint = o->load_opts->scale_load.scale_hint;
    lo->orientation = o->load_opts->orientation;
+   lo->degree = 0;
 }
 
 static void
@@ -3473,6 +3474,7 @@ evas_object_image_load(Evas_Object *eo_obj)
    lo.scale_load.smooth = o->load_opts->scale_load.smooth;
    lo.scale_load.scale_hint = o->load_opts->scale_load.scale_hint;
    lo.orientation = o->load_opts->orientation;
+   lo.degree = 0;
    o->engine_data = obj->layer->evas->engine.func->image_load
       (obj->layer->evas->engine.data.output,
           o->cur->file,