[vlmc-devel] Clip.qml: Better handling of lastPosition

Yikai Lu git at videolan.org
Wed Jul 26 09:11:37 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jul 26 15:42:04 2017 +0900| [1181bafa4ebed41d86f320754d9015bafbd2ace3] | committer: Yikai Lu

Clip.qml: Better handling of lastPosition

> https://code.videolan.org/videolan/vlmc/commit/1181bafa4ebed41d86f320754d9015bafbd2ace3
---

 src/Gui/timeline/Track.qml | 2 +-
 src/Gui/timeline/main.qml  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Gui/timeline/Track.qml b/src/Gui/timeline/Track.qml
index dc5e91ff..7fa1066f 100644
--- a/src/Gui/timeline/Track.qml
+++ b/src/Gui/timeline/Track.qml
@@ -348,7 +348,7 @@ Item {
                 uuid: model.uuid
                 libraryUuid: model.libraryUuid
                 position: model.position
-                lastPosition: model.lastPosition
+                lastPosition: model.position
                 begin: model.begin
                 end: model.end
                 clipInfo: model
diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index 5a5f05c3..82a43aeb 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -93,7 +93,6 @@ Rectangle {
         newDict["begin"] = clipDict["begin"];
         newDict["end"] = clipDict["end"];
         newDict["position"] = clipDict["position"];
-        newDict["lastPosition"] = clipDict["position"];
         newDict["length"] = clipDict["length"];
         newDict["libraryUuid"] = clipDict["libraryUuid"];
         newDict["uuid"] = clipDict["uuid"];
@@ -656,6 +655,7 @@ Rectangle {
             var clipInfo = workflow.clipInfo( uuid );
             var clip = findClipItem( uuid );
             clip.position = clipInfo["position"];
+            clip.lastPosition = clipInfo["position"];
             clip.end = clipInfo["end"];
             clip.begin = clipInfo["begin"];
             clip.updateEffects( clipInfo );



More information about the Vlmc-devel mailing list