Remove redundant checks for horizontal; replace with one simple check.

SVN revision: 33615
This commit is contained in:
Christopher Michael 2008-01-26 05:28:46 +00:00
parent 00f55d1b10
commit 7b394739ae
1 changed files with 1 additions and 2 deletions

View File

@ -99,8 +99,7 @@ e_box_orientation_set(Evas_Object *obj, int horizontal)
sd = evas_object_smart_data_get(obj);
if (!sd) return;
if (((sd->horizontal) && (horizontal)) ||
((!sd->horizontal) && (!horizontal))) return;
if (sd->horizontal == horizontal) return;
sd->horizontal = horizontal;
sd->changed = 1;
if (sd->frozen <= 0) _e_box_smart_reconfigure(sd);