Index: mttroot/mtt/bin/trans/dia2abg.pl ================================================================== --- mttroot/mtt/bin/trans/dia2abg.pl +++ mttroot/mtt/bin/trans/dia2abg.pl @@ -567,15 +567,15 @@ my ($type, $name) = split (/:/, $type_name); if (! $name) { $type = $type_name; if (! defined ($anon_index{$type})) { $anon_index{$type} = 1; + $name = "mtt${type}"; } else { - $anon_index{$type}++; + my $num = ++$anon_index{$type}; + $name = "mtt${type}_${num}"; } - my $num = $anon_index{$type}; - $name = "mtt${type}_${num}"; $anonymous = 1; } else { $anonymous = 0; } $component_id_type{$id} = $type;