Commit c0b4e549 authored by claes's avatar claes

Bugfix, try to move a connection caused segfault

parent caf01d55
...@@ -689,7 +689,7 @@ int FlowCtx::event_handler( flow_eEvent event, int x, int y, int w, int h) ...@@ -689,7 +689,7 @@ int FlowCtx::event_handler( flow_eEvent event, int x, int y, int w, int h)
int j, node_cnt; int j, node_cnt;
// If trace is started, move only tracenodes // If trace is started, move only tracenodes
if ( trace_started && if ( trace_started && a_move.size() > 0 &&
a_move[0]->type() == flow_eObjectType_Node && a_move[0]->type() == flow_eObjectType_Node &&
((FlowNode *)a_move[0])->get_group() != flow_eNodeGroup_Trace) ((FlowNode *)a_move[0])->get_group() != flow_eNodeGroup_Trace)
return 1; return 1;
......
Markdown is supported
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