user32/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:19 +03:00 committed by Alexandre Julliard
parent ae425cdfba
commit f748d6794d
1 changed files with 1 additions and 0 deletions

View File

@ -1191,6 +1191,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
{