diff --git a/src/Editor/DearImGui/Editor.cpp b/src/Editor/DearImGui/Editor.cpp index 40d3936..e85302b 100644 --- a/src/Editor/DearImGui/Editor.cpp +++ b/src/Editor/DearImGui/Editor.cpp @@ -919,10 +919,11 @@ bool Editor::switchOfNet(TypeOfNet const type) //------------------------------------------------------------------------------ Node* Editor::getNode(ImVec2 const& position) { - Node *n = getPlace(position); - if (n != nullptr) - return n; - return getTransition(position); + Node *node = getTransition(position); + if (m_net.type() == TypeOfNet::TimedEventGraph) + return node; + + return (node != nullptr) ? node : getPlace(position); } //------------------------------------------------------------------------------