Skip to content

Commit

Permalink
Unreversed 2D barcodes
Browse files Browse the repository at this point in the history
Signed-off-by: Tore Darell <toredarell@gmail.com>
  • Loading branch information
chinasaur authored and toretore committed May 3, 2009
1 parent be2547a commit f0066d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/barby/outputter/ruby_svg_outputter.rb
Expand Up @@ -48,7 +48,7 @@ def bars_to_rects(opts={})
x, y = lmargin, tmargin

if barcode.two_dimensional?
boolean_groups.reverse_each do |line|
boolean_groups.each do |line|
line.each do |bar, amount|
bar_width = xdim * amount
if bar
Expand Down Expand Up @@ -87,7 +87,7 @@ def bars_to_path_data(opts={})
x, y = lmargin+(xdim/2), tmargin

if barcode.two_dimensional?
booleans.reverse_each do |line|
booleans.each do |line|
line.each do |bar|
if bar
path_data << "M#{x} #{y}V #{y+ydim}"
Expand Down

0 comments on commit f0066d6

Please sign in to comment.