Changeset 1613

Show
Ignore:
Timestamp:
07/10/07 16:36:44 (1 year ago)
Author:
wrobe..@pld-linux.org
Message:

- fixed export to various formats after gaphas.geometry.Rectangle API

change

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/gaphor/services/diagramexportmanager.py

    r1348 r1613  
    105105        surface = cairo.SVGSurface(filename, w, h) 
    106106        cr = cairo.Context(surface) 
    107         view.matrix.translate(-view.bounding_box.x0, -view.bounding_box.y0
     107        view.matrix.translate(-view.bounding_box.x, -view.bounding_box.y
    108108        view.paint(cr) 
    109109        cr.show_page() 
     
    128128        surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, int(w+1), int(h+1)) 
    129129        cr = cairo.Context(surface) 
    130         view.matrix.translate(-view.bounding_box.x0, -view.bounding_box.y0
     130        view.matrix.translate(-view.bounding_box.x, -view.bounding_box.y
    131131        view.paint(cr) 
    132132        cr.show_page() 
     
    149149        surface = cairo.PDFSurface(filename, w, h) 
    150150        cr = cairo.Context(surface) 
    151         view.matrix.translate(-view.bounding_box.x0, -view.bounding_box.y0
     151        view.matrix.translate(-view.bounding_box.x, -view.bounding_box.y
    152152        view.paint(cr) 
    153153        cr.show_page()