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
55c39948
Commit
55c39948
authored
Apr 18, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix MLT7 % rect parsing
parent
3dcf8667
Pipeline
#58625
failed with stage
in 1 minute and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/assets/view/widgets/geometryeditwidget.cpp
View file @
55c39948
...
...
@@ -39,11 +39,12 @@ GeometryEditWidget::GeometryEditWidget(std::shared_ptr<AssetParameterModel> mode
const
QString
value
=
m_model
->
data
(
m_index
,
AssetParameterModel
::
ValueRole
).
toString
().
simplified
();
int
start
=
m_model
->
data
(
m_index
,
AssetParameterModel
::
ParentInRole
).
toInt
();
int
end
=
start
+
m_model
->
data
(
m_index
,
AssetParameterModel
::
ParentDurationRole
).
toInt
();
QSize
profileSize
=
pCore
->
getCurrentFrameSize
();
Mlt
::
Properties
mlt_prop
;
m_model
->
passProperties
(
mlt_prop
);
mlt_prop
.
set
(
"rect"
,
value
.
toUtf8
().
data
());
mlt_rect
r
=
mlt_prop
.
get_rect
(
"rect"
);
QRect
rect
=
QRect
(
int
(
r
.
x
),
int
(
r
.
y
),
int
(
r
.
w
),
int
(
r
.
h
));;
QRect
rect
=
QRect
(
int
(
profileSize
.
width
()
*
r
.
x
),
int
(
profileSize
.
height
()
*
r
.
y
),
int
(
profileSize
.
width
()
*
r
.
w
),
int
(
profileSize
.
height
()
*
r
.
h
));;
if
(
rect
.
isNull
())
{
// Cannot read value, use random default
rect
=
QRect
(
50
,
50
,
200
,
200
);
...
...
Write
Preview
Supports
Markdown
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