From 92ee6edde8e1663e79a10882128575d6bdcbeca9 Mon Sep 17 00:00:00 2001 From: "pierre%netscape.com" Date: Tue, 9 Mar 1999 04:10:33 +0000 Subject: [PATCH] fixed index off by 1 in GetSelectedIndex() git-svn-id: svn://10.0.0.236/trunk@23275 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/mac/nsComboBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/widget/src/mac/nsComboBox.cpp b/mozilla/widget/src/mac/nsComboBox.cpp index 034f192c7c4..9d74d19a0fa 100644 --- a/mozilla/widget/src/mac/nsComboBox.cpp +++ b/mozilla/widget/src/mac/nsComboBox.cpp @@ -291,7 +291,7 @@ PRInt32 nsComboBox::GetSelectedIndex() if (! mMenuHandle) return -1; - return ::GetControlValue(mControl); + return ::GetControlValue(mControl) - 1; } //-------------------------------------------------------------------------