Remove duplicate branch in relative position handling.

This commit is contained in:
Michael Drake 2015-04-23 09:46:04 +01:00
parent df3a889435
commit 69776768d2

View File

@ -4493,14 +4493,14 @@ void layout_compute_relative_offset(struct box *box, int *x, int *y)
assert(left == -right);
if (top == AUTO && bottom == AUTO)
if (top == AUTO && bottom == AUTO) {
top = bottom = 0;
else if (top == AUTO)
} else if (top == AUTO) {
top = -bottom;
else if (bottom == AUTO)
bottom = -top;
else
} else {
/* bottom is AUTO, or neither are AUTO */
bottom = -top;
}
#ifdef LAYOUT_DEBUG
LOG(("left %i, right %i, top %i, bottom %i", left, right, top, bottom));