summaryrefslogtreecommitdiffstats
path: root/src/2geom/convex-cover.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2geom/convex-cover.cpp')
-rw-r--r--src/2geom/convex-cover.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/2geom/convex-cover.cpp b/src/2geom/convex-cover.cpp
index 7dca7f0eb..5b6d36c49 100644
--- a/src/2geom/convex-cover.cpp
+++ b/src/2geom/convex-cover.cpp
@@ -136,6 +136,8 @@ ConvexHull::graham_scan() {
void
ConvexHull::graham() {
+ if(is_degenerate()) // nothing to do
+ return;
find_pivot();
angle_sort();
graham_scan();