Fix locked track locking wrong transitions on project loading

BUG: 355936
parent ad0f3e58
......@@ -388,8 +388,8 @@ void Timeline::getTransitions() {
}
Transition *tr = new Transition(transitionInfo, a_track, m_doc->fps(), base, QString(prop.get("automatic")) == "1");
tr->setPos(transitionInfo.startPos.frames(m_doc->fps()), KdenliveSettings::trackheight() * (visibleTracksCount() - transitionInfo.track) + 1 + tr->itemOffset());
if (QString(prop.get("force_track")) == "1") tr->setForcedTrack(true, a_track);
if (isTrackLocked(b_track - 1)) tr->setItemLocked(true);
if (QString(prop.get("force_track")) == QLatin1String("1")) tr->setForcedTrack(true, a_track);
if (isTrackLocked(b_track)) tr->setItemLocked(true);
m_scene->addItem(tr);
service = mlt_service_producer(service);
}
......
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