Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
4135769a
Commit
4135769a
authored
Nov 24, 2020
by
Jean-Baptiste Mardelle
Browse files
Don't allow moving a subtitle below 0.
parent
7ae95a2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/SubTitle.qml
View file @
4135769a
...
...
@@ -60,7 +60,7 @@ Item {
}
onPositionChanged
:
{
if
(
pressed
&&
!
subtitleBase
.
textEditBegin
&&
startMove
)
{
newStart
=
oldStartFrame
+
(
mouseX
-
oldStartX
)
/
timeScale
newStart
=
Math
.
max
(
0
,
oldStartFrame
+
(
mouseX
-
oldStartX
)
/
timeScale
)
snappedFrame
=
controller
.
suggestSubtitleMove
(
subId
,
newStart
,
root
.
consumerPosition
,
root
.
snapping
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment