From ff1d4d988aa1afe772f4d4056cbc2e567bfcba71 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 16 May 2022 09:45:30 -0700 Subject: [PATCH] bugfix --- main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index b4b1610..3189aae 100644 --- a/main.lua +++ b/main.lua @@ -721,7 +721,7 @@ end function contains_point(shape, p) if shape.mode == 'freehand' then -- not supported - elseif shape.mode == 'line' then + elseif shape.mode == 'line' or shape.mode == 'manhattan' then return shape.p1 == p or shape.p2 == p elseif shape.mode == 'polygon' then return table.find(shape.vertices, p) @@ -733,6 +733,7 @@ function contains_point(shape, p) elseif shape.mode == 'deleted' then -- already done else + print(shape.mode) assert(false) end end