mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-03 07:41:18 -07:00
Allow commas as number input
This commit is contained in:
parent
3a74417e6e
commit
4737fed9d4
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ Item
|
||||||
|
|
||||||
valueFromText: function(text)
|
valueFromText: function(text)
|
||||||
{
|
{
|
||||||
return parseFloat(text.substring(prefix.length, text.length - suffix.length)) / base.stepSize;
|
return parseFloat(text.substring(prefix.length, text.length - suffix.length).replace(",", ".")) / base.stepSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
textFromValue: function(value)
|
textFromValue: function(value)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue