Fix crash.
If intial formula value is incorrect calling a formula wizard will call an exception and the aplication will terminate. --HG-- branch : develop
This commit is contained in:
parent
c9fb50e9a3
commit
ed1e438d48
|
@ -94,7 +94,7 @@ QString VFormula::GetFormula(FormulaType type) const
|
|||
{
|
||||
if (type == FormulaType::ToUser)
|
||||
{
|
||||
return qApp->TrVars()->TryFormulaToUser(d->formula, qApp->Settings()->GetOsSeparator());
|
||||
return VTranslateVars::TryFormulaToUser(d->formula, qApp->Settings()->GetOsSeparator());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -109,7 +109,7 @@ void VFormula::SetFormula(const QString &value, FormulaType type)
|
|||
{
|
||||
if (type == FormulaType::FromUser)
|
||||
{
|
||||
d->formula = qApp->TrVars()->FormulaFromUser(value, qApp->Settings()->GetOsSeparator());
|
||||
d->formula = VTranslateVars::TryFormulaFromUser(value, qApp->Settings()->GetOsSeparator());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user