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
e6d6934f
Commit
e6d6934f
authored
Jan 03, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix crash on copy subtitle (not implemented yet).
Related to
#906
parent
fd20f747
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinefunctions.cpp
View file @
e6d6934f
...
...
@@ -1312,8 +1312,8 @@ QString TimelineFunctions::copyClips(const std::shared_ptr<TimelineItemModel> &t
timeline
->
requestClearSelection
();
// TODO better guess for master track
int
masterTid
=
timeline
->
getItemTrackId
(
clipId
);
bool
audioCopy
=
timeline
->
isAudioTrack
(
masterTid
);
int
masterTrack
=
timeline
->
getTrackPosition
(
masterTid
);
bool
audioCopy
=
masterTid
>=
0
?
timeline
->
isAudioTrack
(
masterTid
)
:
false
;
int
masterTrack
=
masterTid
>=
0
?
timeline
->
getTrackPosition
(
masterTid
)
:
0
;
QDomDocument
copiedItems
;
int
offset
=
-
1
;
QDomElement
container
=
copiedItems
.
createElement
(
QStringLiteral
(
"kdenlive-scene"
));
...
...
Write
Preview
Markdown
is supported
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