summaryrefslogtreecommitdiffstats
path: root/Project/Element.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/Element.cpp')
-rw-r--r--Project/Element.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Project/Element.cpp b/Project/Element.cpp
index 5b2b7d5..381be00 100644
--- a/Project/Element.cpp
+++ b/Project/Element.cpp
@@ -215,13 +215,14 @@ bool Element::RotatedRectanglesIntersects(wxRect2DDouble rect1,
return true;
}
-void Element::SetOnline(bool online)
+bool Element::SetOnline(bool online)
{
// Check if any parent is null.
for(auto it = m_parentList.begin(); it != m_parentList.end(); it++) {
- if(!(*it)) return;
+ if(!(*it)) return false;
}
m_online = online;
+ return true;
}
void Element::GeneralMenuItens(wxMenu& menu)