GCodeAnalyzer: Fixed a crash when encountering an invalid toolchange

This commit is contained in:
Enrico Turri 2019-09-11 08:39:29 +02:00
parent a62bba2508
commit 44c3493f7d
3 changed files with 17 additions and 1 deletions

View file

@ -108,6 +108,7 @@ private:
GCodeReader m_parser;
TypeToMovesMap m_moves_map;
ExtruderOffsetsMap m_extruder_offsets;
unsigned int m_extruders_count;
GCodeFlavor m_gcode_flavor;
// The output of process_layer()
@ -117,6 +118,7 @@ public:
GCodeAnalyzer();
void set_extruder_offsets(const ExtruderOffsetsMap& extruder_offsets);
void set_extruders_count(unsigned int count);
void set_gcode_flavor(const GCodeFlavor& flavor);