Skip to content

Commit

Permalink
- Replaced use of deprecated QgsMapCanvas attribute "mapRenderer" by …
Browse files Browse the repository at this point in the history
…mapSettings
  • Loading branch information
doublebyte1 committed Sep 12, 2016
1 parent b38be6f commit 7d4d9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/MetaSearch/dialogs/maindialog.py
Expand Up @@ -551,7 +551,7 @@ def record_clicked(self):
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)
Expand Down

0 comments on commit 7d4d9ab

Please sign in to comment.