mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
- Replaced use of deprecated QgsMapCanvas attribute "mapRenderer" by mapSettings
This commit is contained in:
parent
b38be6f725
commit
7d4d9ab46c
@ -551,7 +551,7 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user