summaryrefslogtreecommitdiffstats
path: root/Project/Load.cpp
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2017-01-05 19:31:28 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2017-01-05 19:31:28 -0200
commitb6f96ca48bc156898df79deba63d270b393fb150 (patch)
tree9c6e2fa2a45d6c6c4c14d8711b2b89066bfb37d7 /Project/Load.cpp
parenta1932eec23589ed67d824873b37de3e83a09cd24 (diff)
downloadPSP.git-b6f96ca48bc156898df79deba63d270b393fb150.tar.gz
PSP.git-b6f96ca48bc156898df79deba63d270b393fb150.tar.xz
PSP.git-b6f96ca48bc156898df79deba63d270b393fb150.zip
Text bugs fixed
Diffstat (limited to 'Project/Load.cpp')
-rw-r--r--Project/Load.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Project/Load.cpp b/Project/Load.cpp
index e1b9b82..5eda960 100644
--- a/Project/Load.cpp
+++ b/Project/Load.cpp
@@ -120,7 +120,7 @@ void Load::Rotate(bool clockwise)
bool Load::GetContextMenu(wxMenu& menu)
{
- menu.Append(ID_EDIT_LOAD, _("Edit Load"));
+ menu.Append(ID_EDIT_ELEMENT, _("Edit Load"));
GeneralMenuItens(menu);
return true;
}
@@ -190,7 +190,7 @@ wxString Load::GetTipText() const
double activePower = m_electricalData.activePower;
double reactivePower = m_electricalData.reactivePower;
if(m_online && m_electricalData.loadType == CONST_IMPEDANCE) {
- std::complex<double> v = ((Bus*)m_parentList[0])->GetEletricalData().voltage;
+ std::complex<double> v = static_cast<Bus*>(m_parentList[0])->GetEletricalData().voltage;
reactivePower *= std::pow(std::abs(v), 2);
activePower *= std::pow(std::abs(v), 2);
}