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

(otherwise mc.mapRenderer().hasCrsTransformEnabled() can crash)
This commit is contained in:
Juergen E. Fischer 2012-05-25 15:40:11 +02:00
parent d751036823
commit 0246816e64
2 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class QgsMapCanvas : QGraphicsView
QgsMapCanvasMap* map();
QgsMapRenderer* mapRenderer();
QgsMapRenderer* mapRenderer() /Transfer/;
//! Accessor for the canvas pixmap
// @deprecated use canvasPaintDevice()

View File

@ -138,6 +138,8 @@ class ValidateDialog( QDialog, Ui_Dialog ):
if mc.mapRenderer().hasCrsTransformEnabled():
ct = QgsCoordinateTransform( self.vlayer.crs(), mc.mapRenderer().destinationCrs() )
else:
ct = None
e = item.data(Qt.UserRole).toPyObject()