#248: HotCocoa Graphics - creates corrupt PDF files
----------------------------------------+-----------------------------------
Reporter: dave.bald...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords: HotCocoa Graphics PDF
----------------------------------------+-----------------------------------
The save method in canvas.rb needs a
if @filetype == :pdf
CGContextFlush(@ctx) # <<< benign but redundant
CGPDFContextEndPage(@ctx)
CGPDFContextClose(@ctx) # <<<< new
return
The GContextFlush(@ctx) is also unnecessary in the newpage method as well.
Dave.
--
Ticket URL: <http://www.macruby.org/trac/ticket/248>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel