Compute matrix of first paint when we actually have some items

(problem first spotted & debugged by Duane Clark).
This commit is contained in:
Dimitrie O. Paun 2003-02-11 22:17:31 +00:00 committed by Alexandre Julliard
parent f3cd07f033
commit 15e0657f6b
1 changed files with 1 additions and 1 deletions

View File

@ -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;