[Qgis-developer] wrapped C/C++ object of type QgsMapRenderer has been deleted
Radim Blazek
radim.blazek at gmail.com
Tue Dec 17 00:28:12 PST 2013
I have got strange bug report for python plugin, when calling from initGui()
iface.mapCanvas().mapRenderer().hasCrsTransformEnabled()
it gives
RuntimeError: wrapped C/C++ object of type QgsMapRenderer has been deleted
>From C++ code I see that QgisApp mMapCanvas is created in QgisApp
constructor and never deleted and QgsMapCanvas mMapRenderer is created
in QgsMapCanvas constructor and deleted in QgsMapCanvas destructor. I
don't see how it can happen that QgsMapRenderer is deleted.
Any clue?
Radim
More information about the Qgis-developer
mailing list