projects
/
perl
/
modules
/
LaTeX-TikZ.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
9eaa7c6
)
The ->tag must be defined for a Mod, so simplify covering resolution
author
Vincent Pit <vince@profvince.com>
Sun, 18 Jul 2010 12:28:46 +0000 (14:28 +0200)
committer
Vincent Pit <vince@profvince.com>
Sun, 18 Jul 2010 12:28:46 +0000 (14:28 +0200)
lib/LaTeX/TikZ/Set/Mod.pm
patch
|
blob
|
history
diff --git
a/lib/LaTeX/TikZ/Set/Mod.pm
b/lib/LaTeX/TikZ/Set/Mod.pm
index e98b98aecd579c4ada5ccaa10c52d355307f8927..f759b0de3ac1d805050440788d756fe1c3225185 100644
(file)
--- a/
lib/LaTeX/TikZ/Set/Mod.pm
+++ b/
lib/LaTeX/TikZ/Set/Mod.pm
@@
-88,14
+88,10
@@
MOD:
for my $mod ($set->mods) {
$has_layer = 1 if $ltml_tc->check($mod);
my $tag = $mod->tag;
- my @candidates;
- if (defined $tag) {
- my $old = $mods{$tag};
- @candidates = $old ? map $_->[0], @$old : ();
- } else {
- @candidates = values %mods;
+ my $old = $mods{$tag} || [];
+ for (@$old) {
+ next MOD if $_->[0]->cover($mod);
}
- $_->cover($mod) and next MOD for @candidates;
push @{$mods{$tag}}, [ $mod, $last_mod++ ];
push @mods, $mod;
}