fix song collapse bringing pattern length to zero

This commit is contained in:
LTVA1 2024-01-25 17:42:46 +03:00 committed by tildearrow
parent 8ca6558582
commit 30863e029b

View file

@ -1665,6 +1665,10 @@ void FurnaceGUI::doExpand(int multiplier, const SelectionPoint& sStart, const Se
void FurnaceGUI::doCollapseSong(int divider) {
if (divider<2) return;
if (e->curSubSong->patLen<divider) {
showError("can't collapse any further!##sged");
return;
}
finishSelection();
UndoStep us;