elementary/win, conform - dont accept negative degree.

SVN revision: 79442
This commit is contained in:
ChunEon Park 2012-11-19 11:56:54 +00:00
parent 2d776b49bb
commit 6d1126be3c
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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);