aboutsummaryrefslogtreecommitdiff
path: root/src/SVG/SVG2zinc.pm
diff options
context:
space:
mode:
Diffstat (limited to 'src/SVG/SVG2zinc.pm')
-rw-r--r--src/SVG/SVG2zinc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SVG/SVG2zinc.pm b/src/SVG/SVG2zinc.pm
index f344b96..2b1bef2 100644
--- a/src/SVG/SVG2zinc.pm
+++ b/src/SVG/SVG2zinc.pm
@@ -953,7 +953,7 @@ my %convertFormat = (
sub image {
my ($parser, $elementname, %attrs) = @_;
push (@nameStack, $attrs{id});
- if($attrs{id} eq $targetName)
+ if(!defined ($attrs{id}) or ($attrs{id} eq $targetName))
{
$includeFollowingItems = 1;
}