DIAGRAM: fix crash when passed an empty array to showConvexHullLines
This commit is contained in:
parent
143d514648
commit
5020778f60
@ -112,6 +112,7 @@ showConvexHullPoints = Diag f
|
|||||||
showConvexHullLines :: Diag
|
showConvexHullLines :: Diag
|
||||||
showConvexHullLines = Diag f
|
showConvexHullLines = Diag f
|
||||||
where
|
where
|
||||||
|
f _ [] = mempty
|
||||||
f _ vt
|
f _ vt
|
||||||
= (strokeTrail .
|
= (strokeTrail .
|
||||||
fromVertices .
|
fromVertices .
|
||||||
|
Loading…
Reference in New Issue
Block a user