mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00
fixed index off by 1 in GetSelectedIndex()
This commit is contained in:
parent
9ad7c135d1
commit
db64f03904
@ -291,7 +291,7 @@ PRInt32 nsComboBox::GetSelectedIndex()
|
||||
if (! mMenuHandle)
|
||||
return -1;
|
||||
|
||||
return ::GetControlValue(mControl);
|
||||
return ::GetControlValue(mControl) - 1;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user