summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/fitz/draw-path.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/draw-path.c b/source/fitz/draw-path.c
index bf7a9022..0d37c0da 100644
--- a/source/fitz/draw-path.c
+++ b/source/fitz/draw-path.c
@@ -594,6 +594,8 @@ fz_add_line_dot(fz_context *ctx, sctx *s, float ax, float ay)
float oy = ay;
int i;
+ if (n < 3)
+ n = 3;
for (i = 1; i < n; i++)
{
float theta = (float)M_PI * 2 * i / n;