Skip to content

Commit

Permalink
fix: remove blue lines when initiating linetool
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed Dec 6, 2023
1 parent 1c5900a commit 2916443
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,10 @@ def _clear_annotations(self):

def _on_linetool_init(self):
"""Hides GUI dialog, inits line maptool and add items to line list box."""
# Remove blue lines (rubber band)
if self.line_tool:
self.line_tool.canvas.scene().removeItem(self.line_tool.rubberBand)

self.hide()
self.routing_fromline_list.clear()
# Remove all annotations which were added (if any)
Expand Down

0 comments on commit 2916443

Please sign in to comment.