From 4e1e884a21a767f13278e32463b5417569db3534 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 7 Apr 2018 16:59:59 -0300 Subject: Bugfixes --- Project/SimulationsSettingsForm.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Project/SimulationsSettingsForm.cpp') diff --git a/Project/SimulationsSettingsForm.cpp b/Project/SimulationsSettingsForm.cpp index 174b614..1e32b1d 100644 --- a/Project/SimulationsSettingsForm.cpp +++ b/Project/SimulationsSettingsForm.cpp @@ -123,6 +123,9 @@ bool SimulationsSettingsForm::ValidateData() if(!Element::IntFromString(this, m_textCtrlPFMaxIterations->GetValue(), data.powerFlowMaxIterations, _("Value entered incorrectly in the field \"Max. iterations (Power flow)\"."))) return false; + if(!Element::DoubleFromString(this, m_textCtrlPFSlackBusAngle->GetValue(), data.initAngle, + _("Value entered incorrectly in the field \"Slack bus angle\"."))) + return false; if(!Element::DoubleFromString(this, m_textCtrlTimeStep->GetValue(), data.timeStep, _("Value entered incorrectly in the field \"Time step\"."))) return false; -- cgit