Skip to content

Commit

Permalink
bug with arc/curve tool #357 (finished operation behaved like a preview)
Browse files Browse the repository at this point in the history
  • Loading branch information
maoschanz committed May 2, 2023
1 parent 6f8cf08 commit d88bc1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/classic_tools/tool_arc.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ def on_options_changed(self):
self._arrow_type = self.get_option_value('arrow-type')
self.set_active_shape()

if self._1st_segment is None:
# the 1st click hasn't happened, or the 2nd is released, so there is
# no operation currently "ongoing"
return
operation = self.build_operation()
self.do_tool_operation(operation)

Expand Down

0 comments on commit d88bc1c

Please sign in to comment.