Skip to content

Commit

Permalink
Gui: [skip ci] fix a small regression caused by PR #5232 (or commit c…
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 26, 2022
1 parent 63636c8 commit b330a83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Gui/QuantitySpinBox.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit b330a83

Please sign in to comment.