X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FScope.pm;h=d8ce86183abfde264ab100125983fc7873a3b34e;hb=1ace068a681d0dea45c546bb6509586212adec98;hp=e973adc20d6baa6af64b81c16fe6cc0b2b45b9f4;hpb=e6c6fbca8df4f8df7bbce2eb98dd260ed51d9141;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Scope.pm b/lib/LaTeX/TikZ/Scope.pm index e973adc..d8ce861 100644 --- a/lib/LaTeX/TikZ/Scope.pm +++ b/lib/LaTeX/TikZ/Scope.pm @@ -9,11 +9,11 @@ LaTeX::TikZ::Scope - An object modeling a TikZ scope or layer. =head1 VERSION -Version 0.01 +Version 0.02 =cut -our $VERSION = '0.01'; +our $VERSION = '0.02'; use Sub::Name (); @@ -219,20 +219,12 @@ sub fold { ); my $has_different_layers; - for (@$only_left) { + for (@$only_left, @$only_right) { if ($_->type eq 'layer') { $has_different_layers = 1; last; } } - unless ($has_different_layers) { - for (@$only_right) { - if ($_->type eq 'layer') { - $has_different_layers = 1; - last; - } - } - } if (!$has_different_layers and @$common) { my $x = $left->new @@ -268,6 +260,10 @@ sub fold { __PACKAGE__->meta->make_immutable; +=head1 SEE ALSO + +L. + =head1 AUTHOR Vincent Pit, C<< >>, L.