diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-03 19:03:12 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-03 19:03:12 -0200 |
commit | a1932eec23589ed67d824873b37de3e83a09cd24 (patch) | |
tree | db2bed8e7a9c87ad6115a1b8a6a347cad6753b06 /Project/Shunt.cpp | |
parent | 2c0b51586b3b2243ae0fdcd653139818e4b4e23e (diff) | |
download | PSP.git-a1932eec23589ed67d824873b37de3e83a09cd24.tar.gz PSP.git-a1932eec23589ed67d824873b37de3e83a09cd24.tar.xz PSP.git-a1932eec23589ed67d824873b37de3e83a09cd24.zip |
Text element optimizated, but buggy
Element/parent search buggy
Diffstat (limited to 'Project/Shunt.cpp')
-rw-r--r-- | Project/Shunt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Project/Shunt.cpp b/Project/Shunt.cpp index 0cd5736..cbd424e 100644 --- a/Project/Shunt.cpp +++ b/Project/Shunt.cpp @@ -57,6 +57,7 @@ void Shunt::StartMove(wxPoint2DDouble position) void Shunt::RemoveParent(Element* parent) { if(parent == m_parentList[0]) { + m_parentList[0]->RemoveChild(this); m_parentList[0] = NULL; m_online = false; UpdateSwitchesPosition(); |