]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/choice.cpp
Corrected small mistake (set static variable)
[wxWidgets.git] / src / gtk1 / choice.cpp
index e1868bbd1c1f70d37fccd8ce0d6e1eec0a6067b2..b772e750a81ade70652d3fdf650423f1fc4325e8 100644 (file)
@@ -409,7 +409,7 @@ size_t wxChoice::AppendHelper(GtkWidget *menu, const wxString& item)
 
         // don't call wxChoice::GetCount() from here because it doesn't work
         // if we're called from ctor (and GtkMenuShell is still NULL)
-        index = m_clientList.GetCount();
+        index = m_clientList.GetCount() - 1;
     }
 
     if (GTK_WIDGET_REALIZED(m_widget))