From 2c60c7c13ecc8e45e072346193a820f697fb6fdf Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 23 May 2017 20:18:04 -0300 Subject: Switching event bug fixed --- Project/Element.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Project/Element.cpp') 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) -- cgit