diff options
Diffstat (limited to 'src/SVG/SVG2zinc.pm')
-rw-r--r-- | src/SVG/SVG2zinc.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/SVG/SVG2zinc.pm b/src/SVG/SVG2zinc.pm index 31e4559..fb82c2b 100644 --- a/src/SVG/SVG2zinc.pm +++ b/src/SVG/SVG2zinc.pm @@ -1416,9 +1416,11 @@ sub polygon_ { sub path { my ($parser, $elementname, %attrs) = @_; push (@nameStack, $attrs{id}); - if($attrs{id} eq $targetName) - { - $includeFollowingItems = 1; + if (defined $attrs{id}) { + if($attrs{id} eq $targetName) + { + $includeFollowingItems = 1; + } } if( !$includeFollowingItems ) { |