Skip to content

Commit 9e653ee

Browse files
committed
rename varialble
1 parent 44efce0 commit 9e653ee

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

copyLatLonTool.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,8 @@ def canvasMoveEvent(self, event):
136136
except Exception:
137137
self.iface.statusBarIface().showMessage("")
138138

139-
def snappoint(self, point):
140-
# point - QPoint
141-
match = self.canvas.snappingUtils().snapToMap(point)
139+
def snappoint(self, qpoint):
140+
match = self.canvas.snappingUtils().snapToMap(qpoint)
142141
if match.isValid():
143142
if self.vertex is None:
144143
self.vertex = QgsVertexMarker(self.canvas)
@@ -150,7 +149,7 @@ def snappoint(self, point):
150149
return (match.point()) # Returns QgsPointXY
151150
else:
152151
self.removeVertexMarker()
153-
return self.toMapCoordinates(point) # QPoint input, returns QgsPointXY
152+
return self.toMapCoordinates(qpoint) # QPoint input, returns QgsPointXY
154153

155154
def coordFormatString(self):
156155
if self.settings.captureProjIsWgs84():

0 commit comments

Comments
 (0)