Skip to content

Commit 8510d68

Browse files
committed
Cast string to number in Lua
1 parent 566cf78 commit 8510d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

profiles/lib/measure.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function Measure.get_max_height(raw_value, element)
7272
if raw_value then
7373
if height_non_numerical_values[raw_value] then
7474
if element then
75-
return element:get_location_tag('maxheight') or default_maxheight
75+
return tonumber(element:get_location_tag('maxheight')) or default_maxheight
7676
else
7777
return default_maxheight
7878
end

0 commit comments

Comments
 (0)