From d88bc1c53b0727223c5611943c1ad89cb9f6d827 Mon Sep 17 00:00:00 2001 From: RomainFT Date: Tue, 2 May 2023 03:47:59 +0200 Subject: [PATCH] bug with arc/curve tool #357 (finished operation behaved like a preview) --- src/tools/classic_tools/tool_arc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/classic_tools/tool_arc.py b/src/tools/classic_tools/tool_arc.py index 1ddcc1c0..20ef1929 100644 --- a/src/tools/classic_tools/tool_arc.py +++ b/src/tools/classic_tools/tool_arc.py @@ -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)