Fix bug in Formula Wizard. It did not show description for preview calculations.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-01-22 20:51:17 +02:00
parent 27af6ac833
commit 2aaffd0e0d

View File

@ -185,6 +185,12 @@ void DialogEditWrongFormula::ValChanged(int row)
SetDescription(item->text(), *incr->GetValue(), UnitsToStr(qApp->patternUnit(), true), SetDescription(item->text(), *incr->GetValue(), UnitsToStr(qApp->patternUnit(), true),
incr->GetDescription()); incr->GetDescription());
} }
else if (ui->radioButtonPC->isChecked())
{
const QSharedPointer<VIncrement> incr = data->GetVariable<VIncrement>(name);
SetDescription(item->text(), *incr->GetValue(), UnitsToStr(qApp->patternUnit(), true),
incr->GetDescription());
}
else if (ui->radioButtonLengthLine->isChecked()) else if (ui->radioButtonLengthLine->isChecked())
{ {
SetDescription(item->text(), *data->GetVariable<VLengthLine>(name)->GetValue(), SetDescription(item->text(), *data->GetVariable<VLengthLine>(name)->GetValue(),