From e0e106d89808bdd4e44ee1d8951ade8a92ff22bd Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 6 Dec 2017 14:52:31 +0100 Subject: [PATCH] [bugfix] no more zoom reset entering picking mode --- pylot/core/util/widgets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 8dcd5004..533e460f 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1607,7 +1607,6 @@ class PickDlg(QDialog): def activatePicking(self): self.multicompfig.set_frame_color('yellow') self.multicompfig.set_frame_linewidth(1.5) - self.resetZoom() if self.zoomAction.isChecked(): self.zoomAction.trigger() self.multicompfig.disconnectEvents() @@ -2109,7 +2108,9 @@ class PickDlg(QDialog): def filterWFData(self): if self.pick_block: return - self.multicompfig.updateCurrentLimits() + self.cur_xlim = self.multicompfig.axes[0].get_xlim() + self.cur_ylim = self.multicompfig.axes[0].get_ylim() + #self.multicompfig.updateCurrentLimits() data = self.getWFData().copy() old_title = self.multicompfig.axes[0].get_title() title = None