From 732e7f547cf54378e1c7f9837b178bc7d02a1ee6 Mon Sep 17 00:00:00 2001 From: Till Theato Date: Sun, 13 Feb 2011 14:43:56 +0000 Subject: [PATCH] =?utf8?q?Fix=20loading=20of=20non-integer=20parameter=20v?= =?utf8?q?alues=20(B=C3=A9zier=20color=20curves,=20rotoscoping)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit svn path=/trunk/kdenlive/; revision=5399 --- src/trackview.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.2