Commit 5f6be819 authored by Clément Vuchener's avatar Clément Vuchener

Correction de presentation (indentation et commentaires)

parent 4a4e60ad
......@@ -241,19 +241,16 @@ public:
i++) {
state = *i;
map<std::string, Value *>::const_iterator field;
map<std::string, Value *>::const_iterator field;
// Search the color
// Mind the map, may be the source of a bug
if (
state->get_value() &&
if (state->get_value() &&
!state->get_value()->get_extra_fields()->empty() &&
((field = state->get_value()->get_extra_fields()->find(std::string("Color"))) != extra_fields->end())) {
((field = state->get_value()->get_extra_fields()->find(std::string("Color"))) != extra_fields->end())) {
/* Call the object state drawing function with the state color */
color = (const Color *)(*field).second;
draw_state(draw_object, state->get_start_time().get_value(), state->get_end_time().get_value(), position,
// 0,0,0);
color->get_red(), color->get_green(), color->get_blue());
draw_state(draw_object, state->get_start_time().get_value(), state->get_end_time().get_value(), position,
color->get_red(), color->get_green(), color->get_blue());
}
else {
/* Call the object state drawing function with default color */
......
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