Permalink
Browse files

another ruby 1.8.6 compat problem

  • Loading branch information...
1 parent f600caa commit 7ac227e195945914dd8a18f4319582250260633a @joshbuddy joshbuddy committed with Oct 21, 2009
Showing with 5 additions and 3 deletions.
  1. +2 −2 bin/gtile
  2. +3 −1 lib/graster.rb
View
@@ -60,8 +60,8 @@ end # File.open
print gcode(header)
-vert_count.times.map do |yc|
- horiz_count.times.map do |xc|
+vert_count.times do |yc|
+ horiz_count.times do |xc|
body.each do |nc|
nc = nc.dup
nc[:X] += xc*tile_width if nc[:X]
View
@@ -173,7 +173,9 @@ def tiled_row_spans y, forward=true
def build_tiled_rows
forward = false
- @tiled_rows = @image.size[1].times.map {|y| tiled_row_spans y, (forward = !forward) }
+ @tiled_rows = []
+ @tiled_rows = @image.size[1].times {|y| @tiled_rows << tiled_row_spans(y, (forward = !forward)) }
+ @tiled_rows
end
# generate a unique id for this job

0 comments on commit 7ac227e

Please sign in to comment.