Skip to content
GitLab
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
3ff4f881
Commit
3ff4f881
authored
Nov 12, 2022
by
Jean-Baptiste Mardelle
Browse files
Ensure monitor zone out cannot go beyond clip out
parent
da8d2d8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/monitor.cpp
View file @
3ff4f881
...
...
@@ -795,7 +795,7 @@ void Monitor::slotSetZoneStart()
int
currentIn
=
m_glMonitor
->
getCurrentPos
();
int
updatedZoneOut
=
-
1
;
if
(
currentIn
>
oldZone
.
y
())
{
updatedZoneOut
=
qMin
(
m_glMonitor
->
duration
(),
currentIn
+
(
oldZone
.
y
()
-
oldZone
.
x
()));
updatedZoneOut
=
qMin
(
m_glMonitor
->
duration
()
-
1
,
currentIn
+
(
oldZone
.
y
()
-
oldZone
.
x
()));
}
Fun
undo_zone
=
[
this
,
oldZone
,
updatedZoneOut
]()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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