summaryrefslogtreecommitdiffstats
path: root/Project/ControlEditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/ControlEditor.cpp')
-rw-r--r--Project/ControlEditor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Project/ControlEditor.cpp b/Project/ControlEditor.cpp
index becfa43..4e426fe 100644
--- a/Project/ControlEditor.cpp
+++ b/Project/ControlEditor.cpp
@@ -764,6 +764,8 @@ void ControlEditor::CheckConnections()
ConnectionLine* cLine = *it;
if(cLine->GetType() == ConnectionLine::ELEMENT_ELEMENT) {
if(cLine->GetParentList().size() < 2) { it = DeleteLineFromList(it); }
+ } else if(cLine->GetParentList().size() < 1) {
+ it = DeleteLineFromList(it);
}
}
}