[vlmc-devel] Track.qml: Fix typo

Yikai Lu git at videolan.org
Wed Jul 19 15:29:40 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jul 19 10:37:52 2017 +0200| [a782f3c2addf056ec2812fb8850abb9062ed72cc] | committer: Yikai Lu

Track.qml: Fix typo

> https://code.videolan.org/videolan/vlmc/commit/a782f3c2addf056ec2812fb8850abb9062ed72cc
---

 src/Gui/timeline/Track.qml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/Gui/timeline/Track.qml b/src/Gui/timeline/Track.qml
index df1c7bcc..5d4e6914 100644
--- a/src/Gui/timeline/Track.qml
+++ b/src/Gui/timeline/Track.qml
@@ -54,17 +54,17 @@ Item {
                 var oldX = target.pixelPosition();
 
                 if ( useMagneticMode === true ) {
-                    var leastDestance = magneticMargin;
+                    var leastDistance = magneticMargin;
                     // Check two times
                     for ( var k = 0; k < 2; ++k ) {
                         for ( var j = 0; j < markers.count; ++j ) {
                             var mx = ftop( markers.get( j ).position );
-                            if ( Math.abs( newX - mx ) < leastDestance ) {
-                                leastDestance = Math.abs( newX - mx );
+                            if ( Math.abs( newX - mx ) < leastDistance ) {
+                                leastDistance = Math.abs( newX - mx );
                                 newX = mx;
                             }
-                            else if ( Math.abs( newX + target.width - mx ) < leastDestance ) {
-                                leastDestance = Math.abs( newX + target.width - mx );
+                            else if ( Math.abs( newX + target.width - mx ) < leastDistance ) {
+                                leastDistance = Math.abs( newX + target.width - mx );
                                 newX = mx - target.width;
                             }
                         }



More information about the Vlmc-devel mailing list