summaryrefslogtreecommitdiffstats
path: root/Project/Load.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/Load.cpp')
-rw-r--r--Project/Load.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Project/Load.cpp b/Project/Load.cpp
index f5afda3..be5d1bb 100644
--- a/Project/Load.cpp
+++ b/Project/Load.cpp
@@ -7,6 +7,7 @@ bool Load::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.