]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Set/Point.pm
Allow a bare Tikz->point for 0
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Set / Point.pm
index 409db5f359db6e51fa6686f5a01b21ba8f65f06d..868fd5b1d7adfd355c9a360e414672a43e9a3d42 100644 (file)
@@ -48,7 +48,10 @@ sub path {
 use LaTeX::TikZ::Interface point => sub {
  shift;
 
- __PACKAGE__->new(point => @_ > 1 ? \@_ : $_[0] );
+ my $point = @_ == 0 ? 0
+                     : @_ == 1 ? $_[0]
+                               : \@_;
+ __PACKAGE__->new(point => $point);
 };
 
 __PACKAGE__->meta->make_immutable;