Fix corruption on dragging clip in Insert mode

CCBUG: 362630
parent 187acbd6
......@@ -3050,7 +3050,7 @@ void CustomTrackView::dropEvent(QDropEvent * event)
QList<QGraphicsItem *> items;
if (m_selectionGroup) {
items = m_selectionGroup->childItems();
startPos = m_selectionGroup->startPos();
startPos = GenTime((int) m_selectionGroup->scenePos().x(), m_document->fps());
duration = m_selectionGroup->duration();
} else if (m_dragItem) {
m_dragItem->setMainSelectedClip(false);
......
......@@ -614,7 +614,7 @@ bool Timeline::isLastClip(ItemInfo info)
if (tk == NULL) {
return true;
}
return tk->isLastClip(info.endPos.ms());
return tk->isLastClip(info.endPos.seconds());
}
void Timeline::setTrackInfo(int ix, TrackInfo 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