diff --git a/src/add-ons/decorators/SATDecorator/SATWindow.cpp b/src/add-ons/decorators/SATDecorator/SATWindow.cpp index d16dff4713..b17b899acc 100644 --- a/src/add-ons/decorators/SATDecorator/SATWindow.cpp +++ b/src/add-ons/decorators/SATDecorator/SATWindow.cpp @@ -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; }