From 085aa819dc1b43e2ca9f350a83d700ff7ff429ce Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 1 Aug 2021 22:26:16 +0200 Subject: [PATCH] Prevent GraphStart change on empty plot --- client/src/proxguiqt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/proxguiqt.cpp b/client/src/proxguiqt.cpp index 241d3c419..4fbfce09d 100644 --- a/client/src/proxguiqt.cpp +++ b/client/src/proxguiqt.cpp @@ -816,6 +816,7 @@ void Plot::Zoom(double factor, uint32_t refX) { } void Plot::Move(int offset) { + if (GraphTraceLen == 0) return; if (offset > 0) { // Move right if (GraphPixelsPerPoint < 20) { GraphStart += offset;