From 6356f209caea3ae1b3c5e8e1363769b84ad98998 Mon Sep 17 00:00:00 2001 From: ldam <ldam@passcal.nmt.edu> Date: Thu, 20 Jun 2024 20:42:54 -0600 Subject: [PATCH] remove unnecessary index to use default value --- .../view/plotting/plotting_widget/plotting_widget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py index 182b79e9..1a8184df 100644 --- a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py +++ b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py @@ -362,7 +362,7 @@ class PlottingWidget(QtWidgets.QScrollArea): """ if len(self.zoom_minmax_list) > 1: self.min_x, self.max_x = self.zoom_minmax_list[-2] - self.zoom_minmax_list.pop(-1) + self.zoom_minmax_list.pop() self.set_lim(is_zoom_in=False) self.zoom_marker1.set_visible(False) self.zoom_marker2.set_visible(False) -- GitLab