]> git.sesse.net Git - kdenlive/blobdiff - src/kdenlivedoc.cpp
Fix crop effect max value so that the slider has a useful range:
[kdenlive] / src / kdenlivedoc.cpp
index b9cb39f4e5e6647623e64ddf71ba0d92dc386fb2..c4ca548dba24db61b5cc4ea1372e9c0296a7d2f7 100644 (file)
@@ -1426,7 +1426,7 @@ void KdenliveDoc::addTrackEffect(int ix, QDomElement effect)
         QDomElement e = params.item(i).toElement();
 
         // Check if this effect has a variable parameter
-        if (e.attribute("default").startsWith('%')) {
+        if (e.attribute("default").contains('%')) {
             double evaluatedValue = ProfilesDialog::getStringEval(m_profile, e.attribute("default"));
             e.setAttribute("default", evaluatedValue);
             if (e.hasAttribute("value") && e.attribute("value").startsWith('%')) {