[fTools] fixes zoom to error in check geometry validity tool

This commit is contained in:
Salvatore Larosa 2013-06-23 22:33:03 +02:00
parent d1fd484bd3
commit 10152e6d47

View File

@ -166,7 +166,7 @@ class ValidateDialog( QDialog, Ui_Dialog ):
mc = self.iface.mapCanvas()
mc.zoomToPreviousExtent()
e = item.data(Qt.UserRole).toPyObject()
e = item.data(Qt.UserRole)
if type(e)==QgsPoint:
e = mc.mapRenderer().layerToMapCoordinates( self.vlayer, e )