Show
Ignore:
Timestamp:
08/06/07 23:40:07 (1 year ago)
Author:
arj..@yirdis.nl
Message:
  • make image exports work again.
  • View.bounding_box returns qtree soft bounds
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/trunk/demo.py

    r1703 r1850  
    225225        surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, int(w), int(h)) 
    226226        cr = cairo.Context(surface) 
    227         svgview.matrix.translate(-svgview.bounding_box.x0, -svgview.bounding_box.y0
     227        svgview.matrix.translate(-svgview.bounding_box.x, -svgview.bounding_box.y
    228228        cr.save() 
    229229        svgview.paint(cr) 
     
    253253        surface = cairo.SVGSurface('demo.svg', w, h) 
    254254        cr = cairo.Context(surface) 
    255         svgview.matrix.translate(-svgview.bounding_box.x0, -svgview.bounding_box.y0
     255        svgview.matrix.translate(-svgview.bounding_box.x, -svgview.bounding_box.y
    256256        svgview.paint(cr) 
    257257        cr.show_page()