From 064c8153608fa930d99e7a7fac1f497edae0d217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Wed, 10 Mar 2021 00:00:01 -0500 Subject: [PATCH] CurrentWidth can be MaxWidth. Fix instructions hanging when there is a 16 x 16 plate Closes #649 --- common/lc_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lc_model.cpp b/common/lc_model.cpp index 353e1160..6515f736 100644 --- a/common/lc_model.cpp +++ b/common/lc_model.cpp @@ -1485,7 +1485,7 @@ QImage lcModel::GetPartsListImage(int MaxWidth, lcStep Step, quint32 BackgroundC ColumnWidth = qMax(ColumnWidth, Image.Bounds.width()); } - if (CurrentWidth < MaxWidth) + if (CurrentWidth <= MaxWidth) { ImageWidth = CurrentWidth; break;