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:
@@ -291,7 +291,7 @@ PRInt32 nsComboBox::GetSelectedIndex()
|
|||||||
if (! mMenuHandle)
|
if (! mMenuHandle)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return ::GetControlValue(mControl);
|
return ::GetControlValue(mControl) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user