DIAGRAM: fix crash when passed an empty array to showConvexHullLines

This commit is contained in:
hasufell 2014-10-09 17:09:49 +02:00
parent 143d514648
commit 5020778f60
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

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