Commit 33a9d18c authored by Clément Vuchener's avatar Clément Vuchener

debut de correction pour les compteurs

parent 475bc81f
...@@ -284,6 +284,7 @@ public: ...@@ -284,6 +284,7 @@ public:
}/* end while (!_stack_states.empty()) */ }/* end while (!_stack_states.empty()) */
draw_object->end_draw_states(); draw_object->end_draw_states();
draw_object->start_draw_counter();
for (list<const Container *>::const_iterator c = _entity_containers.begin(); for (list<const Container *>::const_iterator c = _entity_containers.begin();
c != _entity_containers.end(); c != _entity_containers.end();
c++) { c++) {
...@@ -302,18 +303,18 @@ public: ...@@ -302,18 +303,18 @@ public:
double max = var->get_max().get_value(); double max = var->get_max().get_value();
variable_values = var->get_values(); variable_values = var->get_values();
draw_object->start_draw_counter(); draw_variable_value(draw_object, 0.0, 0.0, position);
for (list<pair<Date, Double> >::const_iterator value = variable_values->begin(); for (list<pair<Date, Double> >::const_iterator value = variable_values->begin();
value != variable_values->end(); value != variable_values->end();
value++) { value++) {
/* Call the object state drawing function */ /* Call the object state drawing function */
draw_variable_value(draw_object, (*value).first.get_value(), ((*value).second.get_value()-min)/(max-min), position); draw_variable_value(draw_object, (*value).first.get_value(), ((*value).second.get_value()-min)/(max-min), position);
} }
draw_object->end_draw_counter();
position++; // One line was used position++; // One line was used
}/* end for */ }/* end for */
} }
draw_object->end_draw_counter();
} }
......
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