Fix crash when dragging some track effect

parent b49e04f0
......@@ -375,8 +375,14 @@ void EffectStackView2::startDrag()
QPixmap pixmap;
if (m_draggedEffect) {
QDomElement effect = m_draggedEffect->effect().cloneNode().toElement();
// Keep clip crop start in case we want to paste effect
effect.setAttribute("clipstart", m_clipref->cropStart().frames(KdenliveSettings::project_fps()));
if (m_effectMetaInfo.trackMode) {
// Keep clip crop start in case we want to paste effect
effect.setAttribute("clipstart", 0);
}
else {
// Keep clip crop start in case we want to paste effect
effect.setAttribute("clipstart", m_clipref->cropStart().frames(KdenliveSettings::project_fps()));
}
doc.appendChild(doc.importNode(effect, true));
pixmap = QPixmap::grabWidget(m_draggedEffect->title);
}
......
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