]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/commitdiff
Make the formatter autocoerce the origin
authorVincent Pit <vince@profvince.com>
Wed, 21 Jul 2010 10:32:21 +0000 (12:32 +0200)
committerVincent Pit <vince@profvince.com>
Wed, 21 Jul 2010 10:32:21 +0000 (12:32 +0200)
lib/LaTeX/TikZ/Formatter.pm

index 44af1c8bdc1d634542755f8a066ed9df5d770de4..b9a6e10de4e7aae925e04899cc2411440a0d73ee 100644 (file)
@@ -51,8 +51,9 @@ has 'height' => (
 );
 
 has 'origin' => (
 );
 
 has 'origin' => (
- is   => 'ro',
- does => 'Maybe[LaTeX::TikZ::Point]',
+ is     => 'ro',
+ isa    => 'Maybe[LaTeX::TikZ::Point::Autocoerce]',
+ coerce => 1,
 );
 
 my $find_mods;
 );
 
 my $find_mods;