X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..3e6e2754a688f0db737e18fe4a138f83013ad8e9:/src/gtk/listbox.cpp?ds=sidebyside diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index 86679dd655..aade5967cf 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -647,7 +647,7 @@ void wxListBox::Clear() { wxCHECK_RET( m_list != NULL, wxT("invalid listbox") ); - gtk_list_clear_items( m_list, 0, Number() ); + gtk_list_clear_items( m_list, 0, GetCount() ); if ( HasClientObjectData() ) {