Fix compositions broken on insert audio track

parent 59b62ceb
......@@ -2262,7 +2262,7 @@ bool TimelineModel::requestTrackInsertion(int position, int &id, const QString &
QList <std::shared_ptr<CompositionModel>> updatedCompositions;
if (previousId > -1) {
for (auto &compo : m_allCompositions) {
if (compo.second->getATrack() == position && compo.second->getForcedTrack() == -1) {
if (position > 0 && compo.second->getATrack() == position && compo.second->getForcedTrack() == -1) {
updatedCompositions << compo.second;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment