[MacRuby-devel] [MacRuby] #248: HotCocoa Graphics - creates corrupt PDF files

MacRuby ruby-noreply at macosforge.org
Tue Apr 28 15:16:14 PDT 2009


#248: HotCocoa Graphics - creates corrupt PDF files
----------------------------------------+-----------------------------------
 Reporter:  dave.baldwin@…              |       Owner:  lsansonetti@…        
     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/>



More information about the MacRuby-devel mailing list