diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-23 20:18:04 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-23 20:18:04 -0300 |
commit | 2c60c7c13ecc8e45e072346193a820f697fb6fdf (patch) | |
tree | 4c25e23aec8afaf08c9cd218e1c567ac11eead15 /Project/Element.cpp | |
parent | f995850b38916b38718b84f4b82948479a81855a (diff) | |
download | PSP.git-2c60c7c13ecc8e45e072346193a820f697fb6fdf.tar.gz PSP.git-2c60c7c13ecc8e45e072346193a820f697fb6fdf.tar.xz PSP.git-2c60c7c13ecc8e45e072346193a820f697fb6fdf.zip |
Switching event bug fixed
Diffstat (limited to 'Project/Element.cpp')
-rw-r--r-- | Project/Element.cpp | 5 |
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) |