fixed index off by 1 in GetSelectedIndex()

git-svn-id: svn://10.0.0.236/trunk@23275 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pierre%netscape.com
1999-03-09 04:10:33 +00:00
parent 783ac85782
commit 92ee6edde8

View File

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