elementary/win - more reasonable exception handling

Thanks GArik__ for reporting



SVN revision: 79508
This commit is contained in:
ChunEon Park 2012-11-21 11:42:52 +00:00
parent dddfb6585a
commit eacbb4bc33
1 changed files with 6 additions and 1 deletions

View File

@ -3463,7 +3463,12 @@ 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 ((rotation > 360) || (rotation < 0))
{
WRN("Rotation degree should be 0 ~ 360");
if (rotation > 360) rotation %= 360;
if (rotation < 0) rotation += 360;
}
if (sd->rot == rotation) return;
sd->rot = rotation;
TRAP(sd, rotation_set, rotation);