]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Set/Point.pm
Coerce points from common types
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Set / Point.pm
index 58fb28c741a073b565512841ecba24a17a994abb..c4749fe66ab879f51aa426fc3b01b0201621950e 100644 (file)
@@ -39,7 +39,7 @@ sub path {
 use LaTeX::TikZ::Interface point => sub {
  shift;
 
- __PACKAGE__->new(point => $_[0]);
+ __PACKAGE__->new(point => @_ > 1 ? \@_ : $_[0] );
 };
 
 __PACKAGE__->meta->make_immutable;