From: Till Theato Date: Wed, 20 Apr 2011 11:08:03 +0000 (+0000) Subject: Automatically crop tracks relative to project resolution if proxies are enabled for... X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1c3e3ba88c8cfca231fc3de7f69d0bb31f6f0062;p=kdenlive Automatically crop tracks relative to project resolution if proxies are enabled for the project: http://www.kdenlive.org/mantis/view.php?id=2056 svn path=/trunk/kdenlive/; revision=5543 --- diff --git a/src/kdenlivedoc.cpp b/src/kdenlivedoc.cpp index cf065b7d..0e7862d8 100644 --- a/src/kdenlivedoc.cpp +++ b/src/kdenlivedoc.cpp @@ -1397,6 +1397,12 @@ void KdenliveDoc::addTrackEffect(int ix, QDomElement effect) //break; } } + + if (effect.attribute("id") == "crop") { + // default use_profile to 1 for clips with proxies to avoid problems when rendering + if (e.attribute("name") == "use_profile" && getDocumentProperty("enableproxy") == "1") + e.setAttribute("value", "1"); + } } m_tracksList[ix].effectsList.append(effect);