]> git.sesse.net Git - kdenlive/commitdiff
- Do not allow setting opacity of obscure effect to zero as this will lead to a crash
authorTill Theato <root@ttill.de>
Tue, 11 May 2010 16:41:27 +0000 (16:41 +0000)
committerTill Theato <root@ttill.de>
Tue, 11 May 2010 16:41:27 +0000 (16:41 +0000)
svn path=/trunk/kdenlive/; revision=4431

effects/obscure.xml
src/geometryval.cpp

index 83e61e741c94c98e4da6914a60c8ee7b1d28a4ab..b595c0799eb8ee9915cffd314a12e8f8a2416b19 100644 (file)
@@ -3,7 +3,7 @@
        <name>Obscure</name>
        <description>Hide a region of the clip</description>
        <author>Charles Yates</author>
-       <parameter type="geometry" name="start" default="40%,40%:20%x20%" fixed="1">
+       <parameter type="geometry" name="start" default="40%,40%:20%x20%" fixed="1" opacity="nonzero">
                <name>Region</name>
        </parameter>
 </effect>
index 78874c13763275157323fbf25c3652bfff525509..d7265480934953cbd52d420a67a84fa50fc05bc9 100644 (file)
@@ -363,6 +363,8 @@ void Geometryval::setupParam(const QDomElement par, int minFrame, int maxFrame)
     if (par.attribute("opacity") == "false") {
         label_opacity->setHidden(true);
         spinTransp->setHidden(true);
+    } else if(par.attribute("opacity") == "nonzero") {
+        spinTransp->setMinimum(1);
     }
     char *tmp = (char *) qstrdup(val.toUtf8().data());
     if (m_geom) m_geom->parse(tmp, maxFrame - minFrame, m_profile.width, m_profile.height);