Fix of a crash in pressure equlizer filter.
https://github.com/prusa3d/Slic3r/issues/339
This commit is contained in:
parent
66f1ae003f
commit
2bbcd49278
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ void PressureEqualizer::reset()
|
||||||
circular_buffer_items = 0;
|
circular_buffer_items = 0;
|
||||||
circular_buffer.assign(circular_buffer_size, GCodeLine());
|
circular_buffer.assign(circular_buffer_size, GCodeLine());
|
||||||
|
|
||||||
output_buffer.clear();
|
// Preallocate some data, so that output_buffer.data() will return an empty string.
|
||||||
|
output_buffer.assign(32, 0);
|
||||||
output_buffer_length = 0;
|
output_buffer_length = 0;
|
||||||
|
|
||||||
m_current_extruder = 0;
|
m_current_extruder = 0;
|
||||||
|
|
Loading…
Reference in a new issue