Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Jan 8, 2025
1 parent af055b5 commit 628b97e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ def canvasReleaseEvent(self, event: QgsMapMouseEvent) -> None:
self.deactivate()
if event.button() == Qt.RightButton:
self.clean()
self.addLoSStatusChanged.emit(False)
if event.button() == Qt.LeftButton:
if self._widget.los_type_definition == LoSNoTargetDefinitionType.AZIMUTHS:
if self._snap_point:
self._selected_point = self._snap_point
else:
self._selected_point = event.mapPoint()
self.draw()
self.addLoSStatusChanged.emit(True)
else:
if self._start_point is None or (self._start_point and self._end_point):
self._end_point = None
Expand Down

0 comments on commit 628b97e

Please sign in to comment.