Commit dad3deac authored by François Trahay's avatar François Trahay
Browse files

fix link positions

parent d663a1ce
......@@ -306,10 +306,6 @@ public:
size += browse_container(draw_object, (*i), position+size, depth+1,set_container);
}
// Store the position to draw links
_container_positions[container] = position; // First line after children
_container_sizes[container] = size; // First line after children
// Use one line for states and events
#ifdef USE_ITC
if ((container->get_states()!=NULL && !container->get_states()->empty() )|| (container->get_events()!=NULL && !container->get_events()->empty())) {
......@@ -320,6 +316,11 @@ public:
_entity_containers.push_back(container);
}
// Store the position to draw links
_container_positions[container] = position; // First line after children
_container_sizes[container] = size; // First line after children
// Use one line for each variable
if (container->get_variable_number() > 0) {
_variable_containers.push_back(container);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment