mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:48:20 +00:00
Handle the firstVisible item being NULL in
TREEVIEW_UpdateScrollBars().
This commit is contained in:
parent
939d9ca3f3
commit
a752885c3d
|
@ -2599,7 +2599,7 @@ TREEVIEW_UpdateScrollBars(TREEVIEW_INFO *infoPtr)
|
|||
if (vert)
|
||||
{
|
||||
si.nPage = TREEVIEW_GetVisibleCount(infoPtr);
|
||||
if ( si.nPage )
|
||||
if ( si.nPage && NULL != infoPtr->firstVisible)
|
||||
{
|
||||
si.nPos = infoPtr->firstVisible->visibleOrder;
|
||||
si.nMax = infoPtr->maxVisibleOrder - 1;
|
||||
|
|
Loading…
Reference in a new issue