diff options
author | dakkar <dakkar@thenautilus.net> | 2010-12-22 16:00:16 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2010-12-22 16:00:16 +0000 |
commit | c91d953548557f7c82396498ea8d33821afba5ed (patch) | |
tree | 26ceef9933bfe5b1f755182f36b51e206339ef9a /lib/GridFiller.pm | |
parent | center in both directions (diff) | |
download | qr-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.pm | 6 |
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); |