Commit 10c919b6 authored by Nicolas Carion's avatar Nicolas Carion

temporary fix for when activeeffect is not set to a proper value

parent 1baa3807
......@@ -975,7 +975,7 @@ KeyframeModel *EffectStackModel::getEffectKeyframeModel()
if (auto ptr = m_masterService.lock()) {
ix = ptr->get_int("kdenlive:activeeffect");
}
if (ix < 0) {
if (ix < 0 || ix >= rootItem->childCount()) {
return nullptr;
}
std::shared_ptr<EffectItemModel> sourceEffect = std::static_pointer_cast<EffectItemModel>(rootItem->child(ix));
......
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