Skip to content

Commit

Permalink
- fixed export to various formats after gaphas.geometry.Rectangle API
Browse files Browse the repository at this point in the history
  change


git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/trunk@1613 a8418922-720d-0410-834f-a69b97ada669
  • Loading branch information
wrobell committed Jul 10, 2007
1 parent f13db0d commit eb2c93f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gaphor/services/diagramexportmanager.py
Expand Up @@ -104,7 +104,7 @@ def save_svg(self, filename, canvas):
w, h = view.bounding_box.width, view.bounding_box.height
surface = cairo.SVGSurface(filename, w, h)
cr = cairo.Context(surface)
view.matrix.translate(-view.bounding_box.x0, -view.bounding_box.y0)
view.matrix.translate(-view.bounding_box.x, -view.bounding_box.y)
view.paint(cr)
cr.show_page()
surface.flush()
Expand All @@ -127,7 +127,7 @@ def save_png(self, filename, canvas):
w, h = view.bounding_box.width, view.bounding_box.height
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, int(w+1), int(h+1))
cr = cairo.Context(surface)
view.matrix.translate(-view.bounding_box.x0, -view.bounding_box.y0)
view.matrix.translate(-view.bounding_box.x, -view.bounding_box.y)
view.paint(cr)
cr.show_page()
surface.write_to_png(filename)
Expand All @@ -148,7 +148,7 @@ def save_pdf(self, filename, canvas):
w, h = view.bounding_box.width, view.bounding_box.height
surface = cairo.PDFSurface(filename, w, h)
cr = cairo.Context(surface)
view.matrix.translate(-view.bounding_box.x0, -view.bounding_box.y0)
view.matrix.translate(-view.bounding_box.x, -view.bounding_box.y)
view.paint(cr)
cr.show_page()
surface.flush()
Expand Down

0 comments on commit eb2c93f

Please sign in to comment.