- Replaced use of deprecated QgsMapCanvas attribute "mapRenderer" by mapSettings

This commit is contained in:
doublebyte1 2016-09-12 11:52:55 +02:00
parent b38be6f725
commit 7d4d9ab46c

View File

@ -551,7 +551,7 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
points = bbox_to_polygon(record.bbox)
if points is not None:
src = QgsCoordinateReferenceSystem(4326)
dst = self.map.mapRenderer().destinationCrs()
dst = self.map.mapSettings().destinationCrs()
geom = QgsGeometry.fromPolygon(points)
if src.postgisSrid() != dst.postgisSrid():
ctr = QgsCoordinateTransform(src, dst)