]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/choice.cpp
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git] / src / gtk / 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))