Removed an incorrectly placed status line update, causing stack

overflow in unit tests.
This commit is contained in:
bubnikv 2018-03-26 11:21:53 +02:00
parent eed15c459b
commit 8639df1cfd

View file

@ -397,11 +397,6 @@ void PrintObject::generate_support_material()
this->_generate_support_material();
}
this->state.set_done(posSupportMaterial);
char stats[128];
//FIXME this does not belong here! Why should the status bar be updated with the object weight
// at the end of object's support.?
sprintf(stats, "Weight: %.1lfg, Cost: %.1lf", this->_print->total_weight, this->_print->total_cost);
this->_print->set_status(85, stats);
}
}