Skip to content
GitLab
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
e1cac1f5
Commit
e1cac1f5
authored
Apr 03, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix effects like tracker broken on some locales
parent
952c69bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
data/effects/tracker.xml
View file @
e1cac1f5
...
...
@@ -48,7 +48,7 @@
<name>
Motion Tracker
</name>
<description>
Select a zone to follow its movements
</description>
<author>
Jean-Baptiste Mardelle
</author>
<parameter
type=
"geometry"
name=
"rect"
default=
"50%
,
50%
:
25%
x
25%"
fixed=
"1"
opacity=
"false"
conditional=
"1"
>
<parameter
type=
"geometry"
name=
"rect"
default=
"50%
50%
25%
25%"
fixed=
"1"
opacity=
"false"
conditional=
"1"
>
<name>
Rectangle
</name>
</parameter>
<parameter
type=
"list"
name=
"algo"
default=
"KCF"
paramlist=
"KCF;CSRT;MOSSE;MIL;BOOSTING;TLD"
conditional=
"1"
>
...
...
src/assets/model/assetparametermodel.cpp
View file @
e1cac1f5
...
...
@@ -226,8 +226,14 @@ void AssetParameterModel::internalSetParameter(const QString &name, const QStrin
m_params
[
pName
].
value
=
val
;
}
}
bool
conversionSuccess
;
double
doubleValue
=
locale
.
toDouble
(
paramValue
,
&
conversionSuccess
);
bool
conversionSuccess
=
true
;
double
doubleValue
=
0
;
if
(
paramValue
.
simplified
().
contains
(
QLatin1Char
(
' '
)))
{
// Some locale interpret a space as thousands separator
conversionSuccess
=
false
;
}
else
{
doubleValue
=
locale
.
toDouble
(
paramValue
,
&
conversionSuccess
);
}
if
(
conversionSuccess
)
{
m_asset
->
set
(
name
.
toLatin1
().
constData
(),
doubleValue
);
if
(
m_fixedParams
.
count
(
name
)
==
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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