Skip to content
Permalink
Browse files

sip bindings: add /Transfer/ to QgsMapCanvas::mapRenderer()

(otherwise mc.mapRenderer().hasCrsTransformEnabled() can crash)
  • Loading branch information
jef-n committed May 25, 2012
1 parent d751036 commit 0246816e6450c9fd3ec863044455c2f855c7cf04
Showing with 3 additions and 1 deletion.
  1. +1 −1 python/gui/qgsmapcanvas.sip
  2. +2 −0 python/plugins/fTools/tools/doValidate.py
@@ -62,7 +62,7 @@ class QgsMapCanvas : QGraphicsView

QgsMapCanvasMap* map();

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

//! Accessor for the canvas pixmap
// @deprecated use canvasPaintDevice()
@@ -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()

0 comments on commit 0246816

Please sign in to comment.
You can’t perform that action at this time.