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:
@@ -94,7 +94,9 @@ GroupCookie::DoGroupLayout(SATWindow* triggerWindow)
|
|||||||
ResultType result;
|
ResultType result;
|
||||||
for (int32 tries = 0; tries < 15; tries++) {
|
for (int32 tries = 0; tries < 15; tries++) {
|
||||||
result = fSATGroup->GetLinearSpec()->Solve();
|
result = fSATGroup->GetLinearSpec()->Solve();
|
||||||
if (result == OPTIMAL || result == INFEASIBLE) {
|
if (result == INFEASIBLE)
|
||||||
|
break;
|
||||||
|
if (result == OPTIMAL) {
|
||||||
fSATGroup->AdjustWindows(triggerWindow);
|
fSATGroup->AdjustWindows(triggerWindow);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user