FIX: operated an iter cause crash

Change-Id: I70fcbb4f0387bd7fd0344e31ac5acbd45c635f44
This commit is contained in:
liz.li 2023-04-18 15:19:11 +08:00 committed by Lane.Wei
parent ef109ca170
commit 751f318675
1 changed files with 1 additions and 1 deletions

View File

@ -1205,9 +1205,9 @@ void IMSlider::render_menu() {
m_ticks.ticks.end();
std::string custom_code;
if (tick_it != m_ticks.ticks.end()) {
render_edit_menu(*tick_it);
if (tick_it->type == CustomGCode::Custom)
custom_code = tick_it->extra;
render_edit_menu(*tick_it);
}
else {
render_add_menu();