From 1c3e3ba88c8cfca231fc3de7f69d0bb31f6f0062 Mon Sep 17 00:00:00 2001 From: Till Theato Date: Wed, 20 Apr 2011 11:08:03 +0000 Subject: [PATCH] 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 --- src/kdenlivedoc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.2