Fail-safety in spreadRectangles.

This commit is contained in:
Alex 2023-02-11 16:42:17 +03:00
parent b888714ed5
commit b5191c8c22
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ std::optional<rectpack2D::rect_wh> spreadRectangles( rect_vector& vecSubRects, i
int max_side = std::max( areaSizeX, areaSizeY );
while( true )
for( int i = 0; i < 2000; i++ )
{
bool anyUnsuccessful = false;
const int discard_step = 1;