mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
BUGFIX: deselecting all markers freezes the gui.
A index check on current_marker value was missing.
This commit is contained in:
parent
6a88f8ed8f
commit
f9ef7efd39
2
plot.c
2
plot.c
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue