Fixed a GCode preview crash on Linux due to returning a reference to temporary (issue #872)

This commit is contained in:
Lukas Matena 2018-05-11 12:28:31 +02:00
parent 9af6a89f20
commit d89f8128cd
3 changed files with 3 additions and 5 deletions

View file

@ -187,7 +187,7 @@ public:
void reset();
bool empty() const;
const Color& get_extrusion_role_color(ExtrusionRole role) const;
Color get_extrusion_role_color(ExtrusionRole role) const;
Color get_height_color(float height) const;
Color get_width_color(float width) const;
Color get_feedrate_color(float feedrate) const;