package/gluon-hoodselector: fix if equal syntax
Signed-off-by: Jan-Tarek Butt <tarek@ring0.de>
This commit is contained in:
parent
3d3a6e8501
commit
fd65fa20ce
@ -56,7 +56,7 @@ function M.get_domain_by_geo(jdomains,geo)
|
|||||||
local nesting = 1
|
local nesting = 1
|
||||||
for _, area in pairs(domain.domain.hoodselector.shapes) do
|
for _, area in pairs(domain.domain.hoodselector.shapes) do
|
||||||
-- Convert rectangle, defined by to points, into polygon
|
-- 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)
|
area = math_polygon.two_point_rec_to_poly(area)
|
||||||
end
|
end
|
||||||
if (math_polygon.point_in_polygon(area,geo) == 1) then
|
if (math_polygon.point_in_polygon(area,geo) == 1) then
|
||||||
|
Loading…
Reference in New Issue
Block a user