Fix insert at project's end, and fix compilation

Ref: T1961
parent 11bb4c41
...@@ -5520,7 +5520,7 @@ void CustomTrackView::moveGroup(QList<ItemInfo> startClip, QList<ItemInfo> start ...@@ -5520,7 +5520,7 @@ void CustomTrackView::moveGroup(QList<ItemInfo> startClip, QList<ItemInfo> start
} }
Transition *tr = NULL; Transition *tr = NULL;
if (alreadyMoved) if (alreadyMoved)
tr = getTransitionItemAt(startTransition.at(i).startPos + offset, startTransition.at(i).track trackOffset); tr = getTransitionItemAt(startTransition.at(i).startPos + offset, startTransition.at(i).track + trackOffset);
else else
tr = getTransitionItemAt(startTransition.at(i).startPos, startTransition.at(i).track); tr = getTransitionItemAt(startTransition.at(i).startPos, startTransition.at(i).track);
if (tr) { if (tr) {
...@@ -7956,7 +7956,10 @@ void CustomTrackView::insertZone(TimelineMode::EditMode sceneMode, const QString ...@@ -7956,7 +7956,10 @@ void CustomTrackView::insertZone(TimelineMode::EditMode sceneMode, const QString
if (KdenliveSettings::useTimelineZoneToEdit()) if (KdenliveSettings::useTimelineZoneToEdit())
timelineZone = m_document->zone(); timelineZone = m_document->zone();
else { else {
timelineZone.setX(seekPosition()); int cursorPos = seekPosition();
if (cursorPos == m_projectDuration)
cursorPos++;
timelineZone.setX(cursorPos);
timelineZone.setY(-1); timelineZone.setY(-1);
} }
ItemInfo info; ItemInfo info;
......
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