FIX: slider show custom gcode issue
Jira: STUDIO-4316 Change-Id: I576e35861cd6306b67a0b5bd098eb2a739faf75b
This commit is contained in:
parent
453662647e
commit
ae53c50098
|
@ -234,7 +234,7 @@ void IMSlider::SetTicksValues(const Info &custom_gcode_per_print_z)
|
||||||
m_ticks.ticks.clear();
|
m_ticks.ticks.clear();
|
||||||
const std::vector<CustomGCode::Item> &heights = custom_gcode_per_print_z.gcodes;
|
const std::vector<CustomGCode::Item> &heights = custom_gcode_per_print_z.gcodes;
|
||||||
for (auto h : heights) {
|
for (auto h : heights) {
|
||||||
int tick = get_tick_from_value(h.print_z);
|
int tick = get_tick_from_value(h.print_z, true);
|
||||||
if (tick >= 0) m_ticks.ticks.emplace(TickCode{tick, h.type, h.extruder, h.color, h.extra});
|
if (tick >= 0) m_ticks.ticks.emplace(TickCode{tick, h.type, h.extruder, h.color, h.extra});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue