mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
fixed display in SetSelectedIndices()
This commit is contained in:
parent
db64f03904
commit
4b33ec0b5b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user