Remove redundant checks for horizontal; replace with one simple check.
authorChristopher Michael <cpmichael1@comcast.net>
Sat, 26 Jan 2008 05:28:46 +0000 (05:28 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Sat, 26 Jan 2008 05:28:46 +0000 (05:28 +0000)
SVN revision: 33615

src/bin/e_box.c

index e1c8791..ab60a28 100644 (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);