summaryrefslogtreecommitdiff
path: root/lib/GridFiller.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.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.pm')
-rw-r--r--lib/GridFiller.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/GridFiller.pm b/lib/GridFiller.pm
index f88d94f..3932f0d 100644
--- a/lib/GridFiller.pm
+++ b/lib/GridFiller.pm
@@ -79,7 +79,7 @@ sub fill {
$self->log->debug("Placing $word");
- my ($x,$y,$dir) = $chooser->find_place_for($word);
+ my ($space,$x,$y,$dir) = $chooser->find_place_for($word);
if (! defined $x) {
$self->log->debug("No place for $word");
@@ -87,8 +87,8 @@ sub fill {
next;
};
- $result->place_word_at($word,$x,$y,$dir);
- $status->place_word_at($word,$x,$y,$dir);
+ $result->place_word_at($word,$space,$x,$y,$dir);
+ $status->place_word_at($word,$space,$x,$y,$dir);
if ($self->log->is_debug) {
$self->log->debug($status->to_string);