lib/squib/graphics/save_doc.rb in squib-0.5.1 vs lib/squib/graphics/save_doc.rb in squib-0.6.0
- old
+ new
@@ -31,10 +31,10 @@
p[:range].each do |i|
card = @cards[i]
cc.translate(x,y)
cc.rectangle(p[:trim], p[:trim], card_width, card_height)
cc.clip
- case card.backend
+ case card.backend.downcase.to_sym
when :memory
cc.set_source(card.cairo_surface, 0, 0)
cc.paint
when :svg
card.cairo_surface.finish