pp = cp;
}
i = dir == 1 ? 0 : *boxnp - 1;
- if (boxes[i].LL.x > endp->boxes[endp->boxn - 1].UR.x - MINW)
- boxes[i].LL.x = endp->boxes[endp->boxn - 1].UR.x - MINW;
+ boxes[i].LL.x = fmin(boxes[i].LL.x, endp->boxes[endp->boxn - 1].UR.x - MINW);
}
if (right) {
if (!(rspls = getsplinepoints(right))) return;
pp = cp;
}
i = dir == 1 ? 0 : *boxnp - 1;
- if (boxes[i].UR.x < endp->boxes[endp->boxn - 1].LL.x + MINW)
- boxes[i].UR.x = endp->boxes[endp->boxn - 1].LL.x + MINW;
+ boxes[i].UR.x = fmax(boxes[i].UR.x, endp->boxes[endp->boxn - 1].LL.x + MINW);
}
}
#endif