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
3a77973e
Commit
3a77973e
authored
Nov 27, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix crash opening project with a grouped subtitle
parent
45383774
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/groupsmodel.cpp
View file @
3a77973e
...
...
@@ -769,7 +769,8 @@ int GroupsModel::fromJson(const QJsonObject &o, Fun &undo, Fun &redo)
}
QString
data
=
o
.
value
(
QLatin1String
(
"data"
)).
toString
();
QString
leaf
=
o
.
value
(
QLatin1String
(
"leaf"
)).
toString
();
int
trackId
=
ptr
->
getTrackIndexFromPosition
(
data
.
section
(
":"
,
0
,
0
).
toInt
());
int
trackPos
=
data
.
section
(
":"
,
0
,
0
).
toInt
();
int
trackId
=
trackPos
>
-
1
?
ptr
->
getTrackIndexFromPosition
(
trackPos
)
:
-
1
;
int
pos
=
data
.
section
(
":"
,
1
,
1
).
toInt
();
int
id
=
-
1
;
if
(
leaf
==
QLatin1String
(
"clip"
))
{
...
...
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