Merge branch 'master' into gizmos

This commit is contained in:
itsmattkc
2020-05-05 01:05:52 +10:00
2 changed files with 9 additions and 2 deletions
+5 -1
View File
@@ -57,7 +57,11 @@ const QVector<TrackOutput *> &TrackList::GetTracks() const
TrackOutput *TrackList::GetTrackAt(int index) const
{
return track_cache_.at(index);
if (index < track_cache_.size()) {
return track_cache_.at(index);
} else {
return nullptr;
}
}
const rational &TrackList::GetTotalLength() const