From c712b3ce57d3aa872afc14d4dddfe5884e2e2cf9 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Wed, 9 Jan 2013 15:34:59 +0000 Subject: [PATCH] elm map: Fixed formatting. SVN revision: 82465 --- legacy/elementary/src/lib/elm_map.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_map.c b/legacy/elementary/src/lib/elm_map.c index 015f6b7..493d580 100644 --- a/legacy/elementary/src/lib/elm_map.c +++ b/legacy/elementary/src/lib/elm_map.c @@ -241,7 +241,10 @@ _scale_cb(const Evas_Object *obj __UNUSED__, double lat, int zoom) { - if (zoom < 0 || zoom >= (int)(sizeof(_osm_scale_meter)/sizeof(_osm_scale_meter[0]))) return 0; + if ((zoom < 0) || + (zoom >= (int)(sizeof(_osm_scale_meter) / sizeof(_osm_scale_meter[0]))) + ) + return 0; return _osm_scale_meter[zoom] / cos(lat * ELM_PI / 180.0); } -- 2.7.4