]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Set/Line.pm
Kids of Set::{Circle,Line,Rectangle} should be Set::Points, not Points
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Set / Line.pm
index 6e73e38b5bb24106c6ecceb85f552b031c239efa..13c4618eb7d7b97e476c6942c90dcab19869be16 100644 (file)
@@ -15,20 +15,24 @@ Version 0.01
 
 our $VERSION = '0.01';
 
+use LaTeX::TikZ::Set::Point;
+
 use Any::Moose;
 
 with 'LaTeX::TikZ::Set::Op';
 
 has 'from' => (
  is       => 'ro',
does     => 'LaTeX::TikZ::Point',
isa      => 'LaTeX::TikZ::Set::Point',
  required => 1,
+ coerce   => 1,
 );
 
 has 'to' => (
  is       => 'ro',
does     => 'LaTeX::TikZ::Point',
isa      => 'LaTeX::TikZ::Set::Point',
  required => 1,
+ coerce   => 1,
 );
 
 sub path {