If the constraints are infeasible don't move the windows because the target positions are not valid. Partially fix #6631.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38680 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ad76f4439f
commit
5733bbb94b
@ -94,7 +94,9 @@ GroupCookie::DoGroupLayout(SATWindow* triggerWindow)
|
||||
ResultType result;
|
||||
for (int32 tries = 0; tries < 15; tries++) {
|
||||
result = fSATGroup->GetLinearSpec()->Solve();
|
||||
if (result == OPTIMAL || result == INFEASIBLE) {
|
||||
if (result == INFEASIBLE)
|
||||
break;
|
||||
if (result == OPTIMAL) {
|
||||
fSATGroup->AdjustWindows(triggerWindow);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user