X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FFunctor%2FRule.pm;h=81b57355435fa408bea7bada1a7cee8bd651588c;hb=062ab95259610ce39ace60365b659d6113420ce7;hp=8cebab1daf0bd8a667115d6e59950c8ed098dd69;hpb=3661d7849ae4636b74000e33e068493d90ed8337;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Functor/Rule.pm b/lib/LaTeX/TikZ/Functor/Rule.pm index 8cebab1..81b5735 100644 --- a/lib/LaTeX/TikZ/Functor/Rule.pm +++ b/lib/LaTeX/TikZ/Functor/Rule.pm @@ -196,7 +196,7 @@ sub insert { } if (defined $pos) { - splice @$list, $pos, 1, $rule; + splice @$list, $pos, 0, $rule; return 0; } } @@ -242,7 +242,7 @@ You can find documentation for this module with the perldoc command. =head1 COPYRIGHT & LICENSE -Copyright 2010 Vincent Pit, all rights reserved. +Copyright 2010,2011,2012,2013,2014,2015 Vincent Pit, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.