Fixed issue with updating formula field after change size.

--HG--
branch : develop
This commit is contained in:
dismine 2014-09-26 13:25:47 +03:00
parent f550567e48
commit 58ce7fdfac

View File

@ -601,6 +601,12 @@ void DialogTool::DeployFormula(QPlainTextEdit *formula, QPushButton *buttonGrowL
buttonGrowLength->setIcon(QIcon::fromTheme("go-down",
QIcon(":/icons/win.icon.theme/16x16/actions/go-down.png")));
}
// I found that after change size of formula field, it was filed for angle formula, field for formula became black.
// This code prevent this.
setUpdatesEnabled(false);
repaint();
setUpdatesEnabled(true);
}
//---------------------------------------------------------------------------------------------------------------------