nodes/timeline: correctly detect when tracks are removed from the graph

Fixes several segfaults that could result from this occurring.
This commit is contained in:
itsmattkc
2020-04-27 01:01:12 +10:00
parent 981860b60b
commit f61321d68b
11 changed files with 92 additions and 63 deletions
@@ -141,7 +141,7 @@ void TrackViewSplitter::Remove(int index)
QList<int> sz = sizes();
if (alignment_ == Qt::AlignBottom) {
index = count() - index;
index = count() - 1 - index;
}
sz.removeAt(index);