summaryrefslogtreecommitdiffstats
path: root/Project/SimulationsSettingsForm.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-04-07 16:59:59 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-04-07 16:59:59 -0300
commit4e1e884a21a767f13278e32463b5417569db3534 (patch)
tree24b88bb0296156e6f20147812f2ba2821349e114 /Project/SimulationsSettingsForm.cpp
parent71379e56edd24c2b4d9ea341710c2a7cda6d3afb (diff)
downloadPSP.git-4e1e884a21a767f13278e32463b5417569db3534.tar.gz
PSP.git-4e1e884a21a767f13278e32463b5417569db3534.tar.xz
PSP.git-4e1e884a21a767f13278e32463b5417569db3534.zip
Bugfixes
Diffstat (limited to 'Project/SimulationsSettingsForm.cpp')
-rw-r--r--Project/SimulationsSettingsForm.cpp3
1 files changed, 3 insertions, 0 deletions
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;