mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:45:55 +08:00
Allow commas as number input
This commit is contained in:
parent
3a74417e6e
commit
4737fed9d4
@ -51,7 +51,7 @@ Item
|
||||
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user