BUGFIX: deselecting all markers freezes the gui.

A index check on current_marker value was missing.
This commit is contained in:
Damiano Bortolato 2019-12-25 01:15:55 +01:00
parent 6a88f8ed8f
commit f9ef7efd39

2
plot.c
View file

@ -1493,6 +1493,8 @@ draw_all(bool flush)
void void
redraw_marker(int marker, int update_info) redraw_marker(int marker, int update_info)
{ {
if (marker < 0)
return;
// mark map on new position of marker // mark map on new position of marker
markmap_marker(marker); markmap_marker(marker);