From f8b21ea5e6d19e247c7b9fabe409671f0486a7c8 Mon Sep 17 00:00:00 2001 From: Joe Taylor <joe@princeton.edu> Date: Sat, 10 Sep 2022 08:57:31 -0400 Subject: [PATCH] Set m_x=0 on a WideGraph resize event. --- widgets/plotter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/widgets/plotter.cpp b/widgets/plotter.cpp index 6b0cb5e7e..18ab6d4cc 100644 --- a/widgets/plotter.cpp +++ b/widgets/plotter.cpp @@ -112,6 +112,7 @@ void CPlotter::resizeEvent(QResizeEvent* ) //resizeEvent() m_Percent2DScreen0 = m_Percent2DScreen; m_bResized = true; m_vpixperdiv = float(m_h2)/float(VERT_DIVS); + m_x=0; } DrawOverlay(); }