diff options
Diffstat (limited to 'Project/Inductor.cpp')
-rw-r--r-- | Project/Inductor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Project/Inductor.cpp b/Project/Inductor.cpp index b3f80d9..0a272c1 100644 --- a/Project/Inductor.cpp +++ b/Project/Inductor.cpp @@ -15,6 +15,7 @@ bool Inductor::AddParent(Element* parent, wxPoint2DDouble position) { if(parent) { m_parentList.push_back(parent); + parent->AddChild(this); wxPoint2DDouble parentPt = parent->RotateAtPosition(position, -parent->GetAngle()); // Rotate click to horizontal position. parentPt.m_y = parent->GetPosition().m_y; // Centralize on bus. |