Skip to content

Commit

Permalink
feat: remove rubberband when annotations are deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed Jun 10, 2024
1 parent cf7da60 commit 6b90812
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ def _clear_annotations(self) -> None:
if annotation in self.project.annotationManager().annotations():
self.project.annotationManager().removeAnnotation(annotation)
self.annotations = []
if self.rubber_band:
self.rubber_band.reset()

def _on_linetool_init(self) -> None:
"""Hides GUI dialog, inits line maptool and add items to line list box."""
Expand Down

0 comments on commit 6b90812

Please sign in to comment.