From fd65fa20ce42faf3398a491ea35a457bc412330a Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Sun, 26 May 2019 19:45:58 +0200 Subject: [PATCH] package/gluon-hoodselector: fix if equal syntax Signed-off-by: Jan-Tarek Butt --- .../gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua b/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua index d3af04cd..5d82a72c 100644 --- a/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua +++ b/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua @@ -56,7 +56,7 @@ function M.get_domain_by_geo(jdomains,geo) local nesting = 1 for _, area in pairs(domain.domain.hoodselector.shapes) do -- Convert rectangle, defined by to points, into polygon - if #area = 2 then + if #area == 2 then area = math_polygon.two_point_rec_to_poly(area) end if (math_polygon.point_in_polygon(area,geo) == 1) then