From 8510d6850a167446ff8ac741c1a9ad4d9a814249 Mon Sep 17 00:00:00 2001 From: Desone Burns II Date: Mon, 30 Nov 2020 17:25:35 -0700 Subject: [PATCH] Cast string to number in Lua --- profiles/lib/measure.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/lib/measure.lua b/profiles/lib/measure.lua index d1f00c601..0583b3345 100644 --- a/profiles/lib/measure.lua +++ b/profiles/lib/measure.lua @@ -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