From 66a5e9b2ac91f8095c292d9b956d7de2bf13e578 Mon Sep 17 00:00:00 2001
From: ldam <ldam@passcal.nmt.edu>
Date: Fri, 21 Jun 2024 13:20:35 -0600
Subject: [PATCH] reset zoom in before zoom out

---
 .../view/plotting/plotting_widget/plotting_widget.py             | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
index 14932b71..42f79ade 100644
--- a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
+++ b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
@@ -619,6 +619,7 @@ class PlottingWidget(QtWidgets.QScrollArea):
         """
         if xdata < self.min_x:
             # click on left of plot
+            self.zoom_marker1_shown = False     # reset zoom in
             self.zoom_out()
             return
         if not self.zoom_marker1_shown:
-- 
GitLab