Compute matrix of first paint when we actually have some items
(problem first spotted & debugged by Duane Clark).
This commit is contained in:
parent
f3cd07f033
commit
15e0657f6b
|
@ -7850,7 +7850,7 @@ static LRESULT LISTVIEW_Paint(LISTVIEW_INFO *infoPtr, HDC hdc)
|
|||
{
|
||||
TRACE("(hdc=%p)\n", hdc);
|
||||
|
||||
if (infoPtr->bFirstPaint)
|
||||
if (infoPtr->bFirstPaint && infoPtr->nItemCount)
|
||||
{
|
||||
UINT uView = infoPtr->dwStyle & LVS_TYPEMASK;
|
||||
|
||||
|
|
Loading…
Reference in New Issue