summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-14 03:11:43 +0000
committerDavid Robillard <d@drobilla.net>2013-01-14 03:11:43 +0000
commit45931f9e86d6f0734a2fbdf917ff29271cced6b6 (patch)
tree814445ed0aff8521f18c101eba4c4ba9e3b984bd /src
parentb50166512305839e6e4d21ae164aeccf7014456b (diff)
downloadganv-45931f9e86d6f0734a2fbdf917ff29271cced6b6.tar.gz
ganv-45931f9e86d6f0734a2fbdf917ff29271cced6b6.tar.bz2
ganv-45931f9e86d6f0734a2fbdf917ff29271cced6b6.zip
Fix dash of edges.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4978 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-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;