Code cleaning for the 6ed9adaeff commit

This commit is contained in:
YuSanka 2019-11-05 12:55:16 +01:00
parent 6ed9adaeff
commit ba0ad954e8
3 changed files with 68 additions and 130 deletions

View file

@ -3615,7 +3615,7 @@ void DoubleSlider::change_extruder(int extruder)
// if on this Y doesn't exist tick
if (m_ticks_.find(tick) == m_ticks_.end())
{
m_ticks_.insert(TICK_CODE(tick, "tool_change", extruder, colors[extruder-1]));
m_ticks_.insert(TICK_CODE(tick, "tool_change", extruder, extruder == 0 ? "" : colors[extruder-1]));
wxPostEvent(this->GetParent(), wxCommandEvent(wxCUSTOMEVT_TICKSCHANGED));
Refresh();