aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordidier2007-11-13 14:40:59 +0000
committerdidier2007-11-13 14:40:59 +0000
commit64950cf3ad00f2a41326e45162aeaa7756e98138 (patch)
tree6a20479ffc58d6bd12bbb0e71eb370fe82fbada4 /src
parentf922efaa04b8e2ed1eb162bab3422015c1b5bfc9 (diff)
downloadmtc-64950cf3ad00f2a41326e45162aeaa7756e98138.zip
mtc-64950cf3ad00f2a41326e45162aeaa7756e98138.tar.gz
mtc-64950cf3ad00f2a41326e45162aeaa7756e98138.tar.bz2
mtc-64950cf3ad00f2a41326e45162aeaa7756e98138.tar.xz
Robustesse.
Diffstat (limited to 'src')
-rw-r--r--src/SVG/SVG2zinc.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SVG/SVG2zinc.pm b/src/SVG/SVG2zinc.pm
index 5b25aa1..74638dd 100644
--- a/src/SVG/SVG2zinc.pm
+++ b/src/SVG/SVG2zinc.pm
@@ -1680,7 +1680,9 @@ sub analyze_style_hash {
}
elsif ($key eq 'stroke-dasharray')
{
- $res .= ", -linestyle => \"dashed\"";
+ if ($value ne 'none' && $value ne '0') {
+ $res .= ", -linestyle => \"dashed\"";
+ }
}
elsif ($key eq 'display')
{