comctl32/listbox: Don't try to paint non-visible items for multi-column listboxes.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2019-05-30 13:42:18 +03:00 committed by Alexandre Julliard
parent 9af088243c
commit ae425cdfba
1 changed files with 1 additions and 0 deletions

View File

@ -1148,6 +1148,7 @@ static LRESULT LISTBOX_Paint( LB_DESCR *descr, HDC hdc )
rect.right += descr->column_width;
rect.top = 0;
col_pos = descr->page_size - 1;
if (rect.left >= descr->width) break;
}
else
{