From f9ef7efd39d4148d38086beca8a7827aeec45bcf Mon Sep 17 00:00:00 2001 From: Damiano Bortolato Date: Wed, 25 Dec 2019 01:15:55 +0100 Subject: [PATCH] BUGFIX: deselecting all markers freezes the gui. A index check on current_marker value was missing. --- plot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plot.c b/plot.c index 69c9ee6..af18742 100644 --- a/plot.c +++ b/plot.c @@ -1493,6 +1493,8 @@ draw_all(bool flush) void redraw_marker(int marker, int update_info) { + if (marker < 0) + return; // mark map on new position of marker markmap_marker(marker);