summaryrefslogtreecommitdiffstats
path: root/Project/Inductor.cpp
diff options
context:
space:
mode:
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";