Correct the unit symbol.

This commit is contained in:
Roman Telezhynskyi 2023-05-11 22:22:55 +03:00
parent 4f43412dc3
commit c704321d5a
2 changed files with 4 additions and 4 deletions

View File

@ -954,7 +954,7 @@ void DialogPiecePath::EvalPassmarkAngle()
formulaData.variables = data->DataVariables();
formulaData.labelEditFormula = ui->labelEditPassmarkAngle;
formulaData.labelResult = ui->labelResultPassmarkAngle;
formulaData.postfix = UnitsToStr(VAbstractValApplication::VApp()->patternUnits(), true);
formulaData.postfix = degreeSymbol;
formulaData.checkZero = false;
formulaData.checkLessThanZero = false;
@ -1059,7 +1059,7 @@ void DialogPiecePath::FXPassmarkAngle()
QScopedPointer<DialogEditWrongFormula> dialog(new DialogEditWrongFormula(data, toolId, this));
dialog->setWindowTitle(tr("Edit passmark angle"));
dialog->SetFormula(GetFormulaPassmarkAngle());
dialog->setPostfix(UnitsToStr(VAbstractValApplication::VApp()->patternUnits(), true));
dialog->setPostfix(degreeSymbol);
if (dialog->exec() == QDialog::Accepted)
{
SetFormulaPassmarkAngle(dialog->GetFormula());

View File

@ -2437,7 +2437,7 @@ void DialogSeamAllowance::EvalPassmarkAngle()
formulaData.variables = data->DataVariables();
formulaData.labelEditFormula = uiTabPassmarks->labelEditPassmarkAngle;
formulaData.labelResult = uiTabPassmarks->labelResultPassmarkAngle;
formulaData.postfix = UnitsToStr(VAbstractValApplication::VApp()->patternUnits(), true);
formulaData.postfix = degreeSymbol;
formulaData.checkZero = false;
formulaData.checkLessThanZero = false;
@ -2528,7 +2528,7 @@ void DialogSeamAllowance::FXPassmarkAngle()
QScopedPointer<DialogEditWrongFormula> dialog(new DialogEditWrongFormula(data, toolId, this));
dialog->setWindowTitle(tr("Edit passmark angle"));
dialog->SetFormula(GetFormulaFromUser(uiTabPassmarks->plainTextEditPassmarkAngle));
dialog->setPostfix(UnitsToStr(VAbstractValApplication::VApp()->patternUnits(), true));
dialog->setPostfix(degreeSymbol);
if (dialog->exec() == QDialog::Accepted)
{
SetFormulaPassmarkAngle(dialog->GetFormula());