X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLaTeX-TikZ.git;a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FSet%2FRectangle.pm;h=8e585bc31e00f32407538a5b2c1767f2c508c508;hp=08cba5a7034e315a3ef77fc2a64e771dd6daad7d;hb=a2871e9a7be49f59dab5d64afab543404b1e13f4;hpb=1918fdf5100058cd6a4281bc8b04ec8977841e5e diff --git a/lib/LaTeX/TikZ/Set/Rectangle.pm b/lib/LaTeX/TikZ/Set/Rectangle.pm index 08cba5a..8e585bc 100644 --- a/lib/LaTeX/TikZ/Set/Rectangle.pm +++ b/lib/LaTeX/TikZ/Set/Rectangle.pm @@ -72,7 +72,7 @@ Attributes 'width' and 'height' are required when 'to' was not given MSG $args{from} = $tc1->coerce($args{from}); $meta->find_attribute_by_name($_)->type_constraint->assert_valid($args{$_}) - for qw/width height/; + for qw/from width height/; my $p = $args{from}->point; $args{to} = LaTeX::TikZ::Point->new( x => $p->x + $args{width},