Skip to content

Commit 7d4d9ab

Browse files
committed
- Replaced use of deprecated QgsMapCanvas attribute "mapRenderer" by mapSettings
1 parent b38be6f commit 7d4d9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/MetaSearch/dialogs/maindialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def record_clicked(self):
551551
points = bbox_to_polygon(record.bbox)
552552
if points is not None:
553553
src = QgsCoordinateReferenceSystem(4326)
554-
dst = self.map.mapRenderer().destinationCrs()
554+
dst = self.map.mapSettings().destinationCrs()
555555
geom = QgsGeometry.fromPolygon(points)
556556
if src.postgisSrid() != dst.postgisSrid():
557557
ctr = QgsCoordinateTransform(src, dst)

0 commit comments

Comments
 (0)