Commit 0170ffea authored by Ivaria's avatar Ivaria
Browse files

Safer handling in text providers

parent 2e62d0c7
......@@ -173,6 +173,8 @@ local function VUHDO_kiloValidator(anInfo, aValue)
if aValue > 100 then
return VUHDO_round(aValue * 0.001, 1) or "";
else
return "";
end
end
......@@ -186,6 +188,8 @@ local function VUHDO_plusKiloValidator(anInfo, aValue)
return format("+%.1fk", VUHDO_round(aValue * 0.001, 1)) or "";
elseif aValue > 0 then
return format("+%d", aValue) or "";
else
return "";
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment