fixed index off by 1 in GetSelectedIndex()

This commit is contained in:
pierre%netscape.com 1999-03-09 04:10:33 +00:00
Родитель 9ad7c135d1
Коммит db64f03904
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -291,7 +291,7 @@ PRInt32 nsComboBox::GetSelectedIndex()
if (! mMenuHandle)
return -1;
return ::GetControlValue(mControl);
return ::GetControlValue(mControl) - 1;
}
//-------------------------------------------------------------------------