[dia] svg: stroke-dasharray=none makes a solid line
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] svg: stroke-dasharray=none makes a solid line
- Date: Sat, 20 Jul 2013 22:26:09 +0000 (UTC)
commit 2f894fd2a5b55b8ee61f3d1c06269166fd3e4421
Author: Hans Breuer <hans breuer org>
Date: Wed Jul 10 21:42:33 2013 +0200
svg: stroke-dasharray=none makes a solid line
if we don't get a single value line should not be dashed
lib/dia_svg.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/lib/dia_svg.c b/lib/dia_svg.c
index b34d0be..f19c4af 100644
--- a/lib/dia_svg.c
+++ b/lib/dia_svg.c
@@ -259,8 +259,10 @@ _parse_dasharray (DiaSvgStyle *s, real user_scale, gchar *str, gchar **end)
else if (user_scale > 0)
s->dashlength /= user_scale;
- while (dashes[n])
- ++n; /* Dia can not do arbitrary length, the number of dashes gives the style */
+ if (s->dashlength) { /* at least one value */
+ while (dashes[n])
+ ++n; /* Dia can not do arbitrary length, the number of dashes gives the style */
+ }
if (n > 0)
s->dashlength = g_ascii_strtod (dashes[0], NULL);
if (user_scale > 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]