From: Vincent Pit Date: Wed, 21 Jul 2010 10:32:21 +0000 (+0200) Subject: Make the formatter autocoerce the origin X-Git-Tag: v0.01~35 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLaTeX-TikZ.git;a=commitdiff_plain;h=fe29b62538288c70e9eb569d16593167f938fb8d Make the formatter autocoerce the origin --- diff --git a/lib/LaTeX/TikZ/Formatter.pm b/lib/LaTeX/TikZ/Formatter.pm index 44af1c8..b9a6e10 100644 --- a/lib/LaTeX/TikZ/Formatter.pm +++ b/lib/LaTeX/TikZ/Formatter.pm @@ -51,8 +51,9 @@ has 'height' => ( ); has 'origin' => ( - is => 'ro', - does => 'Maybe[LaTeX::TikZ::Point]', + is => 'ro', + isa => 'Maybe[LaTeX::TikZ::Point::Autocoerce]', + coerce => 1, ); my $find_mods;