]> git.sesse.net Git - kdenlive/commitdiff
Fix loading of non-integer parameter values (Bézier color curves, rotoscoping)
authorTill Theato <root@ttill.de>
Sun, 13 Feb 2011 14:43:56 +0000 (14:43 +0000)
committerTill Theato <root@ttill.de>
Sun, 13 Feb 2011 14:43:56 +0000 (14:43 +0000)
svn path=/trunk/kdenlive/; revision=5399

src/trackview.cpp

index 2b06a311d60a89db02453dcc923a74c1688508b1..3b29f7352fa35ba573a806d0ac4441d8e5e4e9b8 100644 (file)
@@ -848,7 +848,10 @@ void TrackView::slotAddProjectEffects(QDomNodeList effects, QDomElement parentNo
                             }
                             e.setAttribute("keyframes", kfrs.join(";"));
                         } else {
-                            e.setAttribute("value", paramvalue.toDouble() * fact);
+                            bool ok;
+                            e.setAttribute("value", paramvalue.toDouble(&ok) * fact);
+                            if (!ok)
+                                e.setAttribute("value", paramvalue);
                         }
                         break;
                     }