Commit 09ace590 authored by Kevin Coulomb's avatar Kevin Coulomb
Browse files

Correction d'un bug

parent 0939918c
......@@ -237,11 +237,13 @@ void browse_stat_state(Node<StateChange> * node, Statistic * stats, Interval I,
browse_stat_state(node->get_right_child(),stats,I,is_displayed);
if(!is_displayed){// To add the first state
if(!is_displayed &&
node->get_element()->get_left_state()){// To add the first state
stats->add_state(node->get_element()->get_left_state()->get_value(),node->get_element()->get_left_state()->get_duration());
is_displayed = true;
}
//Add the right state of the state change
if(node->get_element()->get_right_state())
stats->add_state(node->get_element()->get_right_state()->get_value(),node->get_element()->get_right_state()->get_duration());
}
// Else if after the interval
......
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