summaryrefslogtreecommitdiff
path: root/lib/GridFiller/Chooser/Random.pm
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2010-12-22 16:00:16 +0000
committerdakkar <dakkar@thenautilus.net>2010-12-22 16:00:16 +0000
commitc91d953548557f7c82396498ea8d33821afba5ed (patch)
tree26ceef9933bfe5b1f755182f36b51e206339ef9a /lib/GridFiller/Chooser/Random.pm
parentcenter in both directions (diff)
downloadqr-builder-c91d953548557f7c82396498ea8d33821afba5ed.tar.gz
qr-builder-c91d953548557f7c82396498ea8d33821afba5ed.tar.bz2
qr-builder-c91d953548557f7c82396498ea8d33821afba5ed.zip
center in color runs
Diffstat (limited to 'lib/GridFiller/Chooser/Random.pm')
-rw-r--r--lib/GridFiller/Chooser/Random.pm4
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;
}