Fix macro refs pointing to wrong entry when reordering

This commit is contained in:
WarmUpTill 2021-06-13 12:41:37 +02:00 committed by WarmUpTill
parent 8ef798c70c
commit a86d6f1f76

View File

@ -105,6 +105,10 @@ void AdvSceneSwitcher::on_macroUp_clicked()
iter_swap(switcher->macros.begin() + index,
switcher->macros.begin() + index - 1);
for (auto &m : switcher->macros) {
m.ResolveMacroRef();
}
}
}
@ -118,6 +122,10 @@ void AdvSceneSwitcher::on_macroDown_clicked()
iter_swap(switcher->macros.begin() + index,
switcher->macros.begin() + index + 1);
for (auto &m : switcher->macros) {
m.ResolveMacroRef();
}
}
}