From d2c6ebba21c84bc428674fe9586b9ffa128f457d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 10 Feb 2021 19:22:59 +0200 Subject: [PATCH] Fix the formula wizard crash. --- src/libs/vtools/dialogs/support/dialogeditwrongformula.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/vtools/dialogs/support/dialogeditwrongformula.cpp b/src/libs/vtools/dialogs/support/dialogeditwrongformula.cpp index 747c0b8c2..00286225c 100644 --- a/src/libs/vtools/dialogs/support/dialogeditwrongformula.cpp +++ b/src/libs/vtools/dialogs/support/dialogeditwrongformula.cpp @@ -538,8 +538,7 @@ void DialogEditWrongFormula::InitVariables() void DialogEditWrongFormula::SetDescription(const QString &name, qreal value, bool specialUnits, const QString &description) { - const QString unit = specialUnits ? degreeSymbol - : " " + UnitsToStr(VAbstractValApplication::VApp()->patternUnits(), true); + const QString unit = specialUnits ? degreeSymbol : ' ' + postfix; const QString desc = QStringLiteral("%1(%2%3) - %4").arg(name).arg(value).arg(unit, description); ui->labelDescription->setText(desc); }