[vlmc-devel] Clip.qml: Handle a loop counter correctly
Yikai Lu
git at videolan.org
Mon Jul 11 17:08:14 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Jul 12 00:04:47 2016 +0900| [46e54df058775c76f5a0c96722cbac2cab9e917e] | committer: Yikai Lu
Clip.qml: Handle a loop counter correctly
> https://code.videolan.org/videolan/vlmc/commit/46e54df058775c76f5a0c96722cbac2cab9e917e
---
src/Gui/timeline/Clip.qml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/Gui/timeline/Clip.qml b/src/Gui/timeline/Clip.qml
index e6788fe..dd4b3ab 100644
--- a/src/Gui/timeline/Clip.qml
+++ b/src/Gui/timeline/Clip.qml
@@ -194,8 +194,10 @@ Rectangle {
}
else {
for ( var i = 0; i < selectedClips.length; ++i )
- if ( !selectedClips[i]["item"] || selectedClips[i]["item"] === clip )
+ if ( !selectedClips[i]["item"] || selectedClips[i]["item"] === clip ) {
selectedClips.splice( i, 1 );
+ --i;
+ }
}
}
More information about the Vlmc-devel
mailing list