Cast string to number in Lua

This commit is contained in:
Desone Burns II 2020-11-30 17:25:35 -07:00
parent 566cf785f5
commit 8510d6850a

View File

@ -72,7 +72,7 @@ function Measure.get_max_height(raw_value, element)
if raw_value then
if height_non_numerical_values[raw_value] then
if element then
return element:get_location_tag('maxheight') or default_maxheight
return tonumber(element:get_location_tag('maxheight')) or default_maxheight
else
return default_maxheight
end