package/gluon-hoodselector: fix if equal syntax

Signed-off-by: Jan-Tarek Butt <tarek@ring0.de>
This commit is contained in:
Jan-Tarek Butt 2019-05-26 19:45:58 +02:00
parent 3d3a6e8501
commit fd65fa20ce

View File

@ -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