GUI: possib fix crsh on selall aftr ch coll/exp/fx
This commit is contained in:
parent
c95e9684ed
commit
e5864144eb
|
@ -904,6 +904,7 @@ void FurnaceGUI::drawPattern() {
|
||||||
} else if (e->curSubSong->chanCollapse[i]>0) {
|
} else if (e->curSubSong->chanCollapse[i]>0) {
|
||||||
e->curSubSong->chanCollapse[i]--;
|
e->curSubSong->chanCollapse[i]--;
|
||||||
}
|
}
|
||||||
|
finishSelection();
|
||||||
}
|
}
|
||||||
if (!e->curSubSong->chanCollapse[i]) {
|
if (!e->curSubSong->chanCollapse[i]) {
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
@ -912,6 +913,7 @@ void FurnaceGUI::drawPattern() {
|
||||||
if (ImGui::SmallButton(chanID)) {
|
if (ImGui::SmallButton(chanID)) {
|
||||||
e->curPat[i].effectCols--;
|
e->curPat[i].effectCols--;
|
||||||
if (e->curPat[i].effectCols<1) e->curPat[i].effectCols=1;
|
if (e->curPat[i].effectCols<1) e->curPat[i].effectCols=1;
|
||||||
|
finishSelection();
|
||||||
}
|
}
|
||||||
ImGui::EndDisabled();
|
ImGui::EndDisabled();
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
@ -920,6 +922,7 @@ void FurnaceGUI::drawPattern() {
|
||||||
if (ImGui::SmallButton(chanID)) {
|
if (ImGui::SmallButton(chanID)) {
|
||||||
e->curPat[i].effectCols++;
|
e->curPat[i].effectCols++;
|
||||||
if (e->curPat[i].effectCols>DIV_MAX_EFFECTS) e->curPat[i].effectCols=DIV_MAX_EFFECTS;
|
if (e->curPat[i].effectCols>DIV_MAX_EFFECTS) e->curPat[i].effectCols=DIV_MAX_EFFECTS;
|
||||||
|
finishSelection();
|
||||||
}
|
}
|
||||||
ImGui::EndDisabled();
|
ImGui::EndDisabled();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue