From 787ad89b6722aa95e53196c2c7d02b0dd3fcca72 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Wed, 21 Sep 2011 10:44:06 +0000 Subject: [PATCH] elm map: Coding convention. SVN revision: 63513 --- legacy/elementary/src/lib/elm_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/src/lib/elm_map.c b/legacy/elementary/src/lib/elm_map.c index 0e70e92026..e255d20251 100644 --- a/legacy/elementary/src/lib/elm_map.c +++ b/legacy/elementary/src/lib/elm_map.c @@ -735,6 +735,7 @@ obj_rotate_zoom(void *data, Evas_Object *obj) { ELM_CHECK_WIDTYPE(data, widtype); Widget_Data *wd = elm_widget_data_get(data); + int ow, oh, iw, ih; if ((!wd->pinch.cx) && (!wd->pinch.cy)) { wd->pinch.cx = wd->rotate.cx; @@ -742,10 +743,9 @@ obj_rotate_zoom(void *data, Evas_Object *obj) } evas_map_util_points_populate_from_object_full(wd->map, obj, 0); - int ow, oh, iw, ih; evas_object_image_size_get(obj, &iw, &ih); evas_object_geometry_get(obj, NULL, NULL, &ow, &oh); - if (ow < iw || oh < ih) + if ((ow < iw) || (oh < ih)) { ow *= (double)iw / ow; oh *= (double)ih / oh;