Fix of a crash in pressure equlizer filter.

https://github.com/prusa3d/Slic3r/issues/339
This commit is contained in:
bubnikv 2017-06-08 20:28:21 +02:00
parent 66f1ae003f
commit 2bbcd49278

View File

@ -26,7 +26,8 @@ void PressureEqualizer::reset()
circular_buffer_items = 0;
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;
m_current_extruder = 0;