横线直线搜索bug处理
This commit is contained in:
parent
c13d04c577
commit
596968dab9
|
@ -259,7 +259,7 @@ func SearchNotRepeatStraightLine(minLength int, xys ...[2]int) (result [][][2]in
|
||||||
}
|
}
|
||||||
if len(find) == 0 {
|
if len(find) == 0 {
|
||||||
points = nil
|
points = nil
|
||||||
} else if len(points) >= minLength {
|
} else if len(points) >= minLength-1 {
|
||||||
goto end
|
goto end
|
||||||
} else {
|
} else {
|
||||||
points = nil
|
points = nil
|
||||||
|
|
Loading…
Reference in New Issue