Fix compilation.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-01-24 22:20:31 +02:00
parent 615decb625
commit 3ae5b3d99a

View File

@ -386,12 +386,6 @@ void DialogEditWrongFormula::resizeEvent(QResizeEvent *event)
void DialogEditWrongFormula::SetFormula(const QString &value) void DialogEditWrongFormula::SetFormula(const QString &value)
{ {
formula = qApp->TrVars()->FormulaToUser(value, qApp->Settings()->GetOsSeparator()); formula = qApp->TrVars()->FormulaToUser(value, qApp->Settings()->GetOsSeparator());
// increase height if needed. TODO : see if I can get the max number of caracters in one line
// of this PlainTextEdit to change 80 to this value
if (formula.length() > 80)
{
this->DeployFormulaTextEdit();
}
ui->plainTextEditFormula->setPlainText(formula); ui->plainTextEditFormula->setPlainText(formula);
MoveCursorToEnd(ui->plainTextEditFormula); MoveCursorToEnd(ui->plainTextEditFormula);
} }