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
d8fe0cd5
Commit
d8fe0cd5
authored
Mar 26, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix project duration label displaying one frame too much
BUG: 425639
parent
634ab3be
Pipeline
#55574
passed with stage
in 10 minutes and 43 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/mainwindow.cpp
View file @
d8fe0cd5
...
...
@@ -2206,11 +2206,11 @@ void MainWindow::slotUpdateMousePosition(int pos)
switch
(
m_timeFormatButton
->
currentItem
())
{
case
0
:
m_timeFormatButton
->
setText
(
pCore
->
currentDoc
()
->
timecode
().
getTimecodeFromFrames
(
pos
)
+
QStringLiteral
(
" / "
)
+
pCore
->
currentDoc
()
->
timecode
().
getTimecodeFromFrames
(
getMainTimeline
()
->
controller
()
->
duration
()));
pCore
->
currentDoc
()
->
timecode
().
getTimecodeFromFrames
(
getMainTimeline
()
->
controller
()
->
duration
()
-
1
));
break
;
default:
m_timeFormatButton
->
setText
(
QStringLiteral
(
"%1 / %2"
).
arg
(
pos
,
6
,
10
,
QLatin1Char
(
'0'
)).
arg
(
getMainTimeline
()
->
controller
()
->
duration
(),
6
,
10
,
QLatin1Char
(
'0'
)));
QStringLiteral
(
"%1 / %2"
).
arg
(
pos
,
6
,
10
,
QLatin1Char
(
'0'
)).
arg
(
getMainTimeline
()
->
controller
()
->
duration
()
-
1
,
6
,
10
,
QLatin1Char
(
'0'
)));
}
}
}
...
...
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