From 89c640e5912dbc8be6db6318904a7fffb7fc1ecd Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Thu, 15 Jun 2023 20:00:52 +0200 Subject: [PATCH] bugfix: remove value display item from graph before deletion --- src/gui_qt/main/mainwindow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui_qt/main/mainwindow.py b/src/gui_qt/main/mainwindow.py index c09433b..4c566c2 100644 --- a/src/gui_qt/main/mainwindow.py +++ b/src/gui_qt/main/mainwindow.py @@ -393,6 +393,8 @@ class NMRMainWindow(QtWidgets.QMainWindow, Ui_BaseWindow): self.current_graph_widget.remove_external(item) if val_figure == gid: + self.current_graph_widget.remove_external(self.valuewidget.selection_real) + self.current_graph_widget.remove_external(self.valuewidget.selection_imag) self.tabWidget.setCurrentIndex(0) self.current_graph_widget.enable_picking(False)