]> git.sesse.net Git - kdenlive/blobdiff - src/effectstackedit.cpp
Fix crop effect max value so that the slider has a useful range:
[kdenlive] / src / effectstackedit.cpp
index a2d2b5ff1e07e45b81a26514f4d9f8ddee8d6241..5f6e8e41359d15e994ad5983752d8871b0bd7268 100644 (file)
@@ -261,12 +261,12 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, ItemInfo info, bool
         if (type == "double" || type == "constant") {
             double min;
             double max;
-            if (pa.attribute("min").startsWith('%'))
-                min = ProfilesDialog::getStringEval(m_profile, pa.attribute("min"));
+            if (pa.attribute("min").contains('%'))
+                min = ProfilesDialog::getStringEval(m_profile, pa.attribute("min"), m_frameSize);
             else
                 min = pa.attribute("min").toDouble();
-            if (pa.attribute("max").startsWith('%'))
-                max = ProfilesDialog::getStringEval(m_profile, pa.attribute("max"));
+            if (pa.attribute("max").contains('%'))
+                max = ProfilesDialog::getStringEval(m_profile, pa.attribute("max"), m_frameSize);
             else
                 max = pa.attribute("max").toDouble();