From: Till Theato Date: Sun, 13 Feb 2011 14:43:56 +0000 (+0000) Subject: Fix loading of non-integer parameter values (Bézier color curves, rotoscoping) X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=732e7f547cf54378e1c7f9837b178bc7d02a1ee6;p=kdenlive Fix loading of non-integer parameter values (Bézier color curves, rotoscoping) svn path=/trunk/kdenlive/; revision=5399 --- diff --git a/src/trackview.cpp b/src/trackview.cpp index 2b06a311..3b29f735 100644 --- a/src/trackview.cpp +++ b/src/trackview.cpp @@ -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; }