DIAGRAM: fix crash when passed an empty array to showConvexHullLines

This commit is contained in:
2014-10-09 17:09:49 +02:00
parent 143d514648
commit 5020778f60

View File

@@ -112,6 +112,7 @@ showConvexHullPoints = Diag f
showConvexHullLines :: Diag
showConvexHullLines = Diag f
where
f _ [] = mempty
f _ vt
= (strokeTrail .
fromVertices .