From a1932eec23589ed67d824873b37de3e83a09cd24 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Tue, 3 Jan 2017 19:03:12 -0200 Subject: Text element optimizated, but buggy Element/parent search buggy --- Project/Machines.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Project/Machines.cpp') diff --git a/Project/Machines.cpp b/Project/Machines.cpp index 6377f08..cde5933 100644 --- a/Project/Machines.cpp +++ b/Project/Machines.cpp @@ -142,7 +142,9 @@ void Machines::RotateNode(Element* parent, bool clockwise) void Machines::RemoveParent(Element* parent) { if(parent == m_parentList[0]) { + m_parentList[0]->RemoveChild(this); m_parentList[0] = NULL; + m_online = false; UpdateSwitchesPosition(); UpdatePowerFlowArrowsPosition(); } -- cgit