mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Show print weight with single decimal in the details view
Fixes #9176 CURA-7992
This commit is contained in:
parent
9197a1ca51
commit
464c19f592
1 changed files with 2 additions and 2 deletions
|
@ -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"]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue