diff options
Diffstat (limited to 'lib/GridFiller/Chooser/Random.pm')
-rw-r--r-- | lib/GridFiller/Chooser/Random.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/GridFiller/Chooser/Random.pm b/lib/GridFiller/Chooser/Random.pm index 7fefbf6..f949c4d 100644 --- a/lib/GridFiller/Chooser/Random.pm +++ b/lib/GridFiller/Chooser/Random.pm @@ -35,7 +35,7 @@ sub _find_place_horiz { for my $row (0..$rows-1) { $col = $self->_find_in_row($row,$length); - return ($col,$row,$HORIZONTAL) if defined $col; + return (0,$col,$row,$HORIZONTAL) if defined $col; } return; } @@ -48,7 +48,7 @@ sub _find_place_vert { for my $col (0..$cols-1) { $row = $self->_find_in_col($col,$length); - return ($col,$row,$VERTICAL) if defined $row; + return (0,$col,$row,$VERTICAL) if defined $row; } return; } |