зеркало из https://github.com/mozilla/gecko-dev.git
fixed index off by 1 in GetSelectedIndex()
This commit is contained in:
Родитель
9ad7c135d1
Коммит
db64f03904
|
@ -291,7 +291,7 @@ PRInt32 nsComboBox::GetSelectedIndex()
|
|||
if (! mMenuHandle)
|
||||
return -1;
|
||||
|
||||
return ::GetControlValue(mControl);
|
||||
return ::GetControlValue(mControl) - 1;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче