summaryrefslogtreecommitdiffstats
path: root/Project/Inductor.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/Inductor.cpp
parenta1932eec23589ed67d824873b37de3e83a09cd24 (diff)
downloadPSP.git-b6f96ca48bc156898df79deba63d270b393fb150.tar.gz
PSP.git-b6f96ca48bc156898df79deba63d270b393fb150.tar.xz
PSP.git-b6f96ca48bc156898df79deba63d270b393fb150.zip
Text bugs fixed
Diffstat (limited to 'Project/Inductor.cpp')
-rw-r--r--Project/Inductor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Project/Inductor.cpp b/Project/Inductor.cpp
index 6856ff4..69279df 100644
--- a/Project/Inductor.cpp
+++ b/Project/Inductor.cpp
@@ -111,7 +111,7 @@ void Inductor::Rotate(bool clockwise)
bool Inductor::GetContextMenu(wxMenu& menu)
{
- menu.Append(ID_EDIT_INDUCTOR, _("Edit Inductor"));
+ menu.Append(ID_EDIT_ELEMENT, _("Edit Inductor"));
GeneralMenuItens(menu);
return true;
}
@@ -172,7 +172,7 @@ wxString Inductor::GetTipText() const
// TODO: Avoid reactive power calculation.
double reactivePower = m_electricalData.reactivePower;
if(m_online) {
- 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);
}
tipText += "\n";