From: ChunEon Park Date: Mon, 19 Nov 2012 11:56:54 +0000 (+0000) Subject: elementary/win, conform - dont accept negative degree. X-Git-Tag: submit/efl/20131021.015827~1518 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf224ec4a3488d32aae98c440311e7d9a8bffab0;p=platform%2Fupstream%2Felementary.git elementary/win, conform - dont accept negative degree. SVN revision: 79442 --- diff --git a/src/lib/elm_conform.c b/src/lib/elm_conform.c index 32fba09..b9dc462 100644 --- a/src/lib/elm_conform.c +++ b/src/lib/elm_conform.c @@ -487,7 +487,7 @@ _on_rotation_changed(void *data, if (!old_indi) return; evas_object_hide(old_indi); - if ((rot == 90) || (rot == 270) || (rot == -90) || (rot == -270)) + if ((rot == 90) || (rot == 270)) { if (!sd->landscape_indicator) sd->landscape_indicator = _create_landscape_indicator(conformant); diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index 931e56f..eb81df8 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -3434,6 +3434,7 @@ elm_win_rotation_set(Evas_Object *obj, ELM_WIN_CHECK(obj); ELM_WIN_DATA_GET_OR_RETURN(obj, sd); + if (rotation < 0) rotation = -rotation; if (sd->rot == rotation) return; sd->rot = rotation; TRAP(sd, rotation_set, rotation);