From c63438808ada22234a0982a896e8e6b6650c9e8c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sun, 23 Dec 2012 20:42:48 +0100 Subject: [PATCH] Fix crash when changing speed of a clip that has a fade: http://kdenlive.org/mantis/view.php?id=2888 --- src/customtrackview.cpp | 2 +- src/doubleparameterwidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/customtrackview.cpp b/src/customtrackview.cpp index 04f80b8d..89e46511 100644 --- a/src/customtrackview.cpp +++ b/src/customtrackview.cpp @@ -4260,7 +4260,7 @@ void CustomTrackView::doChangeClipSpeed(ItemInfo info, ItemInfo speedIndependant item->updateRectGeometry(); if (item->cropDuration().frames(m_document->fps()) != endPos) item->resizeEnd((int) info.startPos.frames(m_document->fps()) + endPos - 1); - updatePositionEffects(item, info); + updatePositionEffects(item, info, false); setDocumentModified(); } else { emit displayMessage(i18n("Invalid clip"), ErrorMessage); diff --git a/src/doubleparameterwidget.cpp b/src/doubleparameterwidget.cpp index 136a3bcb..9aa55e9b 100644 --- a/src/doubleparameterwidget.cpp +++ b/src/doubleparameterwidget.cpp @@ -53,7 +53,7 @@ DoubleParameterWidget::DoubleParameterWidget(const QString &name, double value, m_commentLabel->setHidden(true); layout->addWidget(m_commentLabel, 1, 0, 1, -1); } - m_dragVal->setValue(value); + m_dragVal->setValue(value, false); connect(m_dragVal, SIGNAL(valueChanged(double, bool)), this, SLOT(slotSetValue(double, bool))); connect(m_dragVal, SIGNAL(inTimeline(int)), this, SIGNAL(setInTimeline(int))); } -- 2.39.2