Skip to content

Commit 0ec6896

Browse files
committed
Bug fix
1 parent 2cd6c0d commit 0ec6896

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zoomToLatLon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ def zoomToPressed(self):
280280
if bounds and self.settings.showGrid:
281281
canvas_crs = self.canvas.mapSettings().destinationCrs()
282282
if srcCrs != canvas_crs:
283-
tr = QgsCoordinateTransform(srcCrs, canvas_crs, QgsProject.instance())
284-
bounds.transform(tr)
283+
trans = QgsCoordinateTransform(srcCrs, canvas_crs, QgsProject.instance())
284+
bounds.transform(trans)
285285
self.line_marker.addGeometry(bounds, None)
286286
except Exception:
287287
traceback.print_exc()

0 commit comments

Comments
 (0)