Fix NaN values on material print settings tab

This commit is contained in:
fieldOfView 2017-04-13 00:25:38 +02:00
parent e0b927b53c
commit c97f8679c2

View file

@ -273,10 +273,10 @@ TabView
{
id: spinBox
anchors.left: label.right
value: parseFloat(provider.properties.value);
value: (provider.properties.value != "None") ? parseFloat(provider.properties.value) : 0
width: base.secondColumnWidth;
readOnly: !base.editingEnabled
suffix: model.unit
suffix: " " + model.unit
maximumValue: 99999
decimals: model.unit == "mm" ? 2 : 0