From cb4363330fc152d856d504cb630b0935e066eaf4 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 26 Mar 2022 18:27:04 +0100 Subject: [PATCH] Gui: [skip ci] fix a small regression caused by PR #5232 (or commit 7d649fe55) See also forum posting: https://forum.freecadweb.org/viewtopic.php?p=583303#p583303 --- src/Gui/QuantitySpinBox.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Gui/QuantitySpinBox.cpp b/src/Gui/QuantitySpinBox.cpp index d92e50fea3..d503c3625d 100644 --- a/src/Gui/QuantitySpinBox.cpp +++ b/src/Gui/QuantitySpinBox.cpp @@ -778,8 +778,7 @@ void QuantitySpinBox::stepBy(int steps) else if (val < d->minimum) val = d->minimum; - Quantity quant(val, d->unitStr); - updateText(quant); + lineEdit()->setText(QString::fromUtf8("%L1 %2").arg(val).arg(d->unitStr)); updateFromCache(true); update(); selectNumber();