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
d206db0e
Commit
d206db0e
authored
Jun 12, 2020
by
Jean-Baptiste Mardelle
Browse files
Ensure we have a valid context before drawing keyframes
parent
63927a33
Pipeline
#23343
passed with stage
in 13 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/KeyframeView.qml
View file @
d206db0e
...
...
@@ -266,8 +266,9 @@ Rectangle
if
(
kfrCount
<
2
)
{
return
}
context
.
beginPath
()
context
.
fillStyle
=
Qt
.
rgba
(
0
,
0
,
0.8
,
0.5
);
var
ctx
=
getContext
(
"
2d
"
);
ctx
.
beginPath
()
ctx
.
fillStyle
=
Qt
.
rgba
(
0
,
0
,
0.8
,
0.5
);
paths
=
[]
var
xpos
var
ypos
...
...
@@ -291,10 +292,10 @@ Rectangle
paths
.
push
(
compline
.
createObject
(
keyframecanvas
,
{
"
x
"
:
parent
.
width
,
"
y
"
:
ypos
}
))
paths
.
push
(
compline
.
createObject
(
keyframecanvas
,
{
"
x
"
:
parent
.
width
,
"
y
"
:
parent
.
height
}
))
myPath
.
pathElements
=
paths
c
ontex
t
.
clearRect
(
0
,
0
,
width
,
height
);
c
ontex
t
.
path
=
myPath
;
c
ontex
t
.
closePath
()
c
ontex
t
.
fill
()
ct
x
.
clearRect
(
0
,
0
,
width
,
height
);
ct
x
.
path
=
myPath
;
ct
x
.
closePath
()
ct
x
.
fill
()
}
}
}
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