Skip to content

Commit ea1eb9d

Browse files
committed
fixed LCD's bug causing rest on exit hightlight
this was caused by checking option needRedraw with index out of range
1 parent e90a361 commit ea1eb9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/menu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ bool menuOut::needRedraw(menu& m,int i) {
4444
(drawn!=&m)//menu changed
4545
||(top!=lastTop)//screen scrolled
4646
||(m.sel!=lastSel&&((i==m.sel)||(i==lastSel)))//selection changed
47-
||((prompt*)pgmPtrNear(m.data[i]))->needRedraw(*this,i==m.sel);//reflexivity, value changed
47+
||(i<m.sz&&((prompt*)pgmPtrNear(m.data[i]))->needRedraw(*this,i==m.sel));//reflexivity, value changed
4848
}
4949

5050
//menu navigation engine

0 commit comments

Comments
 (0)