Commit a621560e authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash on copy subtitle (not implemented yet).

Related to #906
parent e2aca2a3
Pipeline #46267 passed with stage
in 10 minutes and 14 seconds
......@@ -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"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment