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
a495168a
Commit
a495168a
authored
May 06, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix compile warning
parent
e736db28
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/timelinecontroller.cpp
View file @
a495168a
...
...
@@ -1286,13 +1286,13 @@ bool TimelineController::requestSpacerEndOperation(int clipId, int startPosition
void
TimelineController
::
seekCurrentClip
(
bool
seekToEnd
)
{
const
auto
selection
=
m_model
->
getCurrentSelection
();
for
(
int
cid
:
selection
)
{
if
(
!
selection
.
empty
())
{
int
cid
=
*
selection
.
begin
();
int
start
=
m_model
->
getItemPosition
(
cid
);
if
(
seekToEnd
)
{
start
+=
m_model
->
getItemPlaytime
(
cid
);
}
setPosition
(
start
);
break
;
}
}
...
...
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