Skip to content

Commit

Permalink
sip bindings: add /Transfer/ to QgsMapCanvas::mapRenderer()
Browse files Browse the repository at this point in the history
(otherwise mc.mapRenderer().hasCrsTransformEnabled() can crash)
  • Loading branch information
jef-n committed May 25, 2012
1 parent d751036 commit 0246816
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/gui/qgsmapcanvas.sip
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class QgsMapCanvas : QGraphicsView

QgsMapCanvasMap* map();

QgsMapRenderer* mapRenderer();
QgsMapRenderer* mapRenderer() /Transfer/;

//! Accessor for the canvas pixmap
// @deprecated use canvasPaintDevice()
Expand Down
2 changes: 2 additions & 0 deletions python/plugins/fTools/tools/doValidate.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ def zoomToError(self, curr, prev):

if mc.mapRenderer().hasCrsTransformEnabled():
ct = QgsCoordinateTransform( self.vlayer.crs(), mc.mapRenderer().destinationCrs() )
else:
ct = None

e = item.data(Qt.UserRole).toPyObject()

Expand Down

0 comments on commit 0246816

Please sign in to comment.