]> git.sesse.net Git - kdenlive/commitdiff
Automatically crop tracks relative to project resolution if proxies are enabled for...
authorTill Theato <root@ttill.de>
Wed, 20 Apr 2011 11:08:03 +0000 (11:08 +0000)
committerTill Theato <root@ttill.de>
Wed, 20 Apr 2011 11:08:03 +0000 (11:08 +0000)
http://www.kdenlive.org/mantis/view.php?id=2056

svn path=/trunk/kdenlive/; revision=5543

src/kdenlivedoc.cpp

index cf065b7dea11777bcf1739a3d87593d546acd7aa..0e7862d86ac6c2819519d99bc3f54cdd404cf6c2 100644 (file)
@@ -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);