CurrentWidth can be MaxWidth.

Fix instructions hanging when there is a 16 x 16 plate
Closes #649
This commit is contained in:
Hubert Figuière 2021-03-10 00:00:01 -05:00
parent de3a3adf34
commit 064c815360

View file

@ -1485,7 +1485,7 @@ QImage lcModel::GetPartsListImage(int MaxWidth, lcStep Step, quint32 BackgroundC
ColumnWidth = qMax(ColumnWidth, Image.Bounds.width()); ColumnWidth = qMax(ColumnWidth, Image.Bounds.width());
} }
if (CurrentWidth < MaxWidth) if (CurrentWidth <= MaxWidth)
{ {
ImageWidth = CurrentWidth; ImageWidth = CurrentWidth;
break; break;