Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #3481 from GeoCat/master
- Replaced use of deprecated QgsMapCanvas attribute "mapRenderer" by mapSettings
  • Loading branch information
m-kuhn committed Sep 13, 2016
2 parents 92ed3be + 7d4d9ab commit 9215fca
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 9215fca

Please sign in to comment.