Show print weight with single decimal in the details view

Fixes #9176
CURA-7992
This commit is contained in:
Jaime van Kessel 2021-01-26 10:29:55 +01:00
parent 9197a1ca51
commit 464c19f592
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -144,7 +144,7 @@ Column
{
names.push(printMaterialNames[index])
lengths.push(printMaterialLengths[index].toFixed(2))
weights.push(String(Math.round(printMaterialWeights[index])))
weights.push(String(printMaterialWeights[index].toFixed(1)))
var cost = printMaterialCosts[index] == undefined ? 0 : printMaterialCosts[index].toFixed(2)
costs.push(cost)
}
@ -153,7 +153,7 @@ Column
if(lengths.length == 0)
{
lengths = ["0.00"]
weights = ["0"]
weights = ["0.0"]
costs = ["0.00"]
}