ui: enable and all off in marker selection

This commit is contained in:
TT 2019-08-18 08:18:52 +09:00
parent 36c1d79e3c
commit b823a8060d
3 changed files with 15 additions and 16 deletions

2
plot.c
View file

@ -1291,7 +1291,7 @@ cell_draw_marker_info(int m, int n, int w, int h)
cell_drawstring_5x7(w, h, buf, xpos, ypos, 0xffff);
// draw marker delta
if (active_marker != previous_marker && markers[previous_marker].enabled) {
if (previous_marker >= 0 && active_marker != previous_marker && markers[previous_marker].enabled) {
int idx0 = markers[previous_marker].index;
xpos = 192;
xpos -= m * CELLWIDTH -CELLOFFSETX;