Fix extra page for PDF sprues

Fixes #246
This commit is contained in:
Andy Meneely
2018-07-31 13:54:14 -04:00
parent 1bc9e3f19e
commit 3d1f1ff989
3 changed files with 6 additions and 6 deletions
+4 -5
View File
@@ -29,16 +29,15 @@ module Squib
card = @deck.cards[i]
slot = slots[i % per_sheet]
draw_card cc, card,
slot['x'], slot['y'],
slot['rotate'],
draw_card cc, card,
slot['x'], slot['y'],
slot['rotate'],
@sheet_args.trim, @sheet_args.trim_radius
bar.increment
end
draw_overlay_above_cards cc
cc = draw_page cc
cc.target.finish
end
end
@@ -61,7 +60,7 @@ module Squib
private
def next_page_if_needed(cc, i, per_sheet)
return cc unless (i != 0) && (i % per_sheet).zero?
return cc unless (i != 0) && (i % per_sheet) == 0
draw_overlay_above_cards cc
cc = draw_page cc