Skip to content
Permalink
Browse files

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

…mapSettings
  • Loading branch information
doublebyte1 committed Sep 12, 2016
1 parent b38be6f commit 7d4d9ab46cd1788ad78e2280e25f296d0c3790e6
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 7d4d9ab

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