Fix bug in Formula Wizard. It did not show description for preview calculations.
--HG-- branch : develop
This commit is contained in:
parent
27af6ac833
commit
2aaffd0e0d
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user