Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix effect param corruption on copy with comma separated locale

parent 9ba5953e
......@@ -4,10 +4,9 @@
<name>Levels</name>
<description>Adjust levels</description>
<author>Maksim Golovkin</author>
<parameter type="list" name="Channel" default="3" paramlist="0;1;2;3">
<paramlistdisplay>Red,Green,Blue,Luma</paramlistdisplay>
<name>Channel</name>
<parameter type="list" name="Channel" default="3" paramlist="0;1;2;3">
<paramlistdisplay>Red,Green,Blue,Luma</paramlistdisplay>
<name>Channel</name>
</parameter>
<parameter type="simplekeyframe" name="Input black level" default="0" min="0" max="1000" factor="1000">
<name>Input black level</name>
......
......@@ -465,8 +465,13 @@ QVector<QPair<QString, QVariant>> AssetParameterModel::getAllParameters() const
void AssetParameterModel::setParameters(const QVector<QPair<QString, QVariant>> &params)
{
QLocale locale;
for (const auto &param : params) {
setParameter(param.first, param.second.toString());
if (param.second.type() == QMetaType::Double) {
setParameter(param.first, locale.toString(param.second.toDouble()));
} else {
setParameter(param.first, param.second.toString());
}
}
}
......
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