横线直线搜索bug处理

This commit is contained in:
kercylan98 2023-06-05 19:49:26 +08:00
parent c13d04c577
commit 596968dab9
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ func SearchNotRepeatStraightLine(minLength int, xys ...[2]int) (result [][][2]in
}
if len(find) == 0 {
points = nil
} else if len(points) >= minLength {
} else if len(points) >= minLength-1 {
goto end
} else {
points = nil