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