X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FSet%2FPath.pm;h=0b695c62c622cb27e30eeae6539716adb842ef2b;hb=9eaa7c633f6b14fe72e7a6b479bd198c93c7d8ff;hp=b8d976827d04bd3431c7df07fed8d01c6295d2da;hpb=263a93f34deb0f2e87e89d6186361c7232b61c04;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Set/Path.pm b/lib/LaTeX/TikZ/Set/Path.pm index b8d9768..0b695c6 100644 --- a/lib/LaTeX/TikZ/Set/Path.pm +++ b/lib/LaTeX/TikZ/Set/Path.pm @@ -42,9 +42,9 @@ my $ltspe_tc = find_type_constraint('LaTeX::TikZ::Set::Path::Elements'); sub add { my $set = shift; - $ltspe_tc->check($_) for @_; + $ltspe_tc->assert_valid($_) for @_; - push @{$_[0]->_ops}, @_; + push @{$set->_ops}, @_; $set; }