aboutsummaryrefslogtreecommitdiff
path: root/src/SVG
diff options
context:
space:
mode:
authorsaal2007-05-30 07:36:07 +0000
committersaal2007-05-30 07:36:07 +0000
commit90a9fbcb83c6a56c189f95801360319337ec40e6 (patch)
tree2f1d97f780e1a7e1494cfb1de77ff62c44e7b6d3 /src/SVG
parentc64f070dd85904fe2056921b919b3bcc67fc4101 (diff)
downloadmtc-90a9fbcb83c6a56c189f95801360319337ec40e6.zip
mtc-90a9fbcb83c6a56c189f95801360319337ec40e6.tar.gz
mtc-90a9fbcb83c6a56c189f95801360319337ec40e6.tar.bz2
mtc-90a9fbcb83c6a56c189f95801360319337ec40e6.tar.xz
modification de la methode image afin d'éviter une sortie prématurée s'il n'y a pas d'attribut id dans l'entrée image
Diffstat (limited to 'src/SVG')
-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;
}