From 6f01cfd75c2d85877f5945bd7a35d27daea0834b Mon Sep 17 00:00:00 2001
From: ldam <ldam@passcal.nmt.edu>
Date: Wed, 31 Jul 2024 11:42:19 -0600
Subject: [PATCH] add clearing zoom_markers when zooming out even when there's
 no zoom in is made

---
 .../view/plotting/plotting_widget/plotting_widget.py        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
index c6bee01a..b66fa0b8 100644
--- a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
+++ b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
@@ -364,9 +364,9 @@ class PlottingWidget(QtWidgets.QScrollArea):
             self.min_x, self.max_x = self.zoom_minmax_list[-2]
             self.zoom_minmax_list.pop()
             self.set_lim(is_zoom_in=False)
-            self.zoom_marker1.set_visible(False)
-            self.zoom_marker2.set_visible(False)
-            self.plotting_axes.canvas.draw()
+        self.zoom_marker1.set_visible(False)
+        self.zoom_marker2.set_visible(False)
+        self.plotting_axes.canvas.draw()
 
     def eventFilter(self, target: QObject, event: QEvent) -> bool:
         """
-- 
GitLab