diff --git a/ORStools/gui/ORStoolsDialog.py b/ORStools/gui/ORStoolsDialog.py index 6a6e6c8..ab9daa1 100644 --- a/ORStools/gui/ORStoolsDialog.py +++ b/ORStools/gui/ORStoolsDialog.py @@ -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."""