andymeneely / squib

A Ruby DSL for prototyping card games.
http://squib.rocks
MIT License
918 stars 67 forks source link

Extra pages and no pages issues on save_sheet and save_pdf #320

Closed andymeneely closed 3 years ago

andymeneely commented 4 years ago

Follow-up to #246 - when the surface is a PDF, writing the last page is automatically painted and no new pages are needed. But, the final page of a PNG surface needs to be saved too. So when you use sprues, the last "page" of save_png gets cut off.

Also: sprues now have page counts that start at 0, not 1, to be consistent.

Fixing this issue on the next release (v0.16)