From a61a71c6154af6bffa27ba73b4925fa60195ff31 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 10 Feb 2022 20:50:44 +0000 Subject: [PATCH] Fix bug that caused infinite loop --- glue/plugins/tools/pv_slicer/qt/pv_slicer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glue/plugins/tools/pv_slicer/qt/pv_slicer.py b/glue/plugins/tools/pv_slicer/qt/pv_slicer.py index e3a7c51ca..b33c79617 100644 --- a/glue/plugins/tools/pv_slicer/qt/pv_slicer.py +++ b/glue/plugins/tools/pv_slicer/qt/pv_slicer.py @@ -64,7 +64,7 @@ def _extract_callback(self, mode): for pvdata in self.viewer.session.data_collection: if isinstance(pvdata, PVSlicedData): if pvdata.original_data is data: - pvdata.original_data = self.viewer.state.reference_data + pvdata.original_data = data pvdata.x_att = self.viewer.state.x_att pvdata.y_att = self.viewer.state.y_att pvdata.set_xy(vx, vy)