Fix an if statement getting moved into a loop it shouldn't have Found by coverity code analysis.
Mikael Magnusson mikachu@gmail.com
1 files changed,
5 insertions(+),
5 deletions(-)
jump to
M
openbox/place.c
→
openbox/place.c
@@ -360,11 +360,11 @@ r = MAX(r, RECT_RIGHT(m->frame->area));
b = MAX(b, RECT_BOTTOM(m->frame->area)); } } - if (!first) { - *x = ((r + 1 - l) - frame_size.width) / 2 + l; - *y = ((b + 1 - t) - frame_size.height) / 2 + t; - return TRUE; - } + } + if (!first) { + *x = ((r + 1 - l) - frame_size.width) / 2 + l; + *y = ((b + 1 - t) - frame_size.height) / 2 + t; + return TRUE; } }