fixed display in SetSelectedIndices()

This commit is contained in:
pierre%netscape.com 1999-03-09 04:11:25 +00:00
parent db64f03904
commit 4b33ec0b5b

View File

@ -419,10 +419,12 @@ nsresult nsListBox::SetSelectedIndices(PRInt32 aIndices[], PRInt32 aSize)
::SetPt(&theCell, 0, 1);
::LSetSelect(true, theCell, mListHandle);
}
::LSetDrawingMode(true, mListHandle);
::LAutoScroll(mListHandle);
::LSetDrawingMode(true, mListHandle);
EndDraw();
Invalidate(PR_TRUE);
return NS_OK;
}
@ -477,6 +479,8 @@ nsresult nsListBox::Deselect()
::LSetDrawingMode(true, mListHandle);
EndDraw();
Invalidate(PR_TRUE);
return NS_OK;
}