mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-04-07 07:24:05 +00: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
1 changed files with 2 additions and 0 deletions
2
plot.c
2
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue