[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdenlive/Applications/16.12] src/doc: Fix error in previous commit
From:       Jean-Baptiste Mardelle <jb () kdenlive ! org>
Date:       2016-11-29 7:57:51
Message-ID: E1cBdIV-00050q-3e () code ! kde ! org
[Download RAW message or body]

Git commit ade0ce14193e4a2e62b9d683630a0deaa1d0876a by Jean-Baptiste Mardelle.
Committed on 29/11/2016 at 07:57.
Pushed by mardelle into branch 'Applications/16.12'.

Fix error in previous commit

M  +5    -4    src/doc/documentchecker.cpp

https://commits.kde.org/kdenlive/ade0ce14193e4a2e62b9d683630a0deaa1d0876a

diff --git a/src/doc/documentchecker.cpp b/src/doc/documentchecker.cpp
index 1f9def9..a85c62b 100644
--- a/src/doc/documentchecker.cpp
+++ b/src/doc/documentchecker.cpp
@@ -840,14 +840,15 @@ void DocumentChecker::fixClipItem(QTreeWidgetItem *child, QDomNodeList producers
                     // Fix clip
                     QString resource = getProperty(e, QLatin1String("resource"));
                     QString service = getProperty(e, QLatin1String("mlt_service"));
+                    QString updatedResource = fixedResource;
                     if (resource.contains(QRegExp("\\?[0-9]+\\.[0-9]+(&amp;strobe=[0-9]+)?$"))) {
-                        fixedResource.append('?' + resource.section('?', -1));
+                        updatedResource.append('?' + resource.section('?', -1));
                     }
                     if (service == QLatin1String("timewarp")) {
-                        setProperty(e, QLatin1String("warp_resource"), fixedResource);
-                        fixedResource.prepend(getProperty(e, QLatin1String("warp_speed")) + ":");
+                        setProperty(e, QLatin1String("warp_resource"), updatedResource);
+                        updatedResource.prepend(getProperty(e, QLatin1String("warp_speed")) + ":");
                     }
-                    setProperty(e, QLatin1String("resource"), fixedResource);
+                    setProperty(e, QLatin1String("resource"), updatedResource);
                 }
             }
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic