mirror of
https://github.com/leozide/leocad
synced 2025-01-19 22:26:27 +01:00
CurrentWidth can be MaxWidth.
Fix instructions hanging when there is a 16 x 16 plate Closes #649
This commit is contained in:
parent
de3a3adf34
commit
064c815360
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue