Skip to content
Permalink
Browse files

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 9215fca239f4488b1dc53211d266695945d93863
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/MetaSearch/dialogs/maindialog.py
@@ -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)

0 comments on commit 9215fca

Please sign in to comment.
You can’t perform that action at this time.