Commit 06c7c90a authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

Make the treeview correctly search when the top index is selected.

parent 38a03ca6
......@@ -4388,10 +4388,18 @@ static INT TREEVIEW_ProcessLetterKeys(
idx=infoPtr->root->firstChild;
}
do {
/* At the end point, sort out wrapping */
if (idx == NULL) {
/* If endidx is null, stop at the last item (ie top to bottom) */
if (endidx == NULL)
break;
/* Otherwise, start again at the very beginning */
idx=infoPtr->root->firstChild;
/* But if we are stopping on the first child, end now! */
if (idx == endidx) break;
}
/* get item */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment