We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8182427 commit 6bfd892Copy full SHA for 6bfd892
1 file changed
plotpy/tools/curve.py
@@ -845,7 +845,9 @@ def insert_point_at_selection(
845
param.set_max_index(self.__x.size - 1)
846
param.index = self.__idx
847
param.value = self.__y[self.__idx - 1 : self.__idx + 1].mean()
848
- param.edit()
+
849
+ if not param.edit():
850
+ return
851
852
insertion_index: int = param.index + param.index_offset # type: ignore
853
new_x: float = self.__x[insertion_index - 1 : insertion_index + 1].mean()
0 commit comments