mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Merge pull request #3481 from GeoCat/master
- Replaced use of deprecated QgsMapCanvas attribute "mapRenderer" by mapSettings
This commit is contained in:
commit
9215fca239
@ -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