diff --git a/src/libs/vtools/dialogs/tools/dialogendline.cpp b/src/libs/vtools/dialogs/tools/dialogendline.cpp index ad5b6ecfd..0367894c4 100644 --- a/src/libs/vtools/dialogs/tools/dialogendline.cpp +++ b/src/libs/vtools/dialogs/tools/dialogendline.cpp @@ -146,7 +146,7 @@ void DialogEndLine::EvalAngle() void DialogEndLine::EvalLength() { FormulaData formulaData; - formulaData.formula = ui->plainTextEditAngle->toPlainText(); + formulaData.formula = ui->plainTextEditFormula->toPlainText(); formulaData.variables = data->DataVariables(); formulaData.labelEditFormula = ui->labelEditFormula; formulaData.labelResult = ui->labelResultCalculation;