[vlmc-devel] Timeline: Set the timeline length only if it' s smaller than an actual value
Yikai Lu
git at videolan.org
Mon Jul 18 15:40:06 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Jul 18 22:19:53 2016 +0900| [7a3308be29e04e9dc6b2be0922e447cfcbf7abbe] | committer: Yikai Lu
Timeline: Set the timeline length only if it's smaller than an actual value
> https://code.videolan.org/videolan/vlmc/commit/7a3308be29e04e9dc6b2be0922e447cfcbf7abbe
---
src/Gui/timeline/main.qml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index 0d7793a..b7673c1 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -447,8 +447,10 @@ Rectangle {
Connections {
target: workflow
onLengthChanged: {
- page.length = length;
- zoomIn( sView.width / ( ftop( length ) + initPosOfCursor + 100 ) );
+ if ( page.length < length ) {
+ page.length = length;
+ zoomIn( sView.width / ( ftop( length ) + initPosOfCursor + 100 ) );
+ }
}
}
More information about the Vlmc-devel
mailing list