Fix crash that occurred when hitting pgup/pgdn in the URL input without having the choice list visible.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@530 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
committed by
Alexandre Deckner
parent
ef6778d11e
commit
aef38397d3
@@ -418,9 +418,16 @@ BDefaultChoiceView::ChoicesAreShown()
|
|||||||
|
|
||||||
int32
|
int32
|
||||||
BDefaultChoiceView::CountVisibleChoices() const
|
BDefaultChoiceView::CountVisibleChoices() const
|
||||||
|
{
|
||||||
|
if (fListView)
|
||||||
{
|
{
|
||||||
return min_c(fMaxVisibleChoices, fListView->CountItems());
|
return min_c(fMaxVisibleChoices, fListView->CountItems());
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user