fix song collapse bringing pattern length to zero
This commit is contained in:
parent
8ca6558582
commit
30863e029b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue