summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/edge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/edge.c b/src/edge.c
index ab41ecf..326931d 100644
--- a/src/edge.c
+++ b/src/edge.c
@@ -335,6 +335,8 @@ ganv_edge_draw(GanvItem* item,
if (dash_length > 0.0) {
double dashed[2] = { dash_length, dash_length };
cairo_set_dash(cr, dashed, 2, impl->dash_offset);
+ } else {
+ cairo_set_dash(cr, &dash_length, 0, 0);
}
const double join_x = (src_x + dst_x) / 2.0;