diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index e9b724c666..95ede00501 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -1815,7 +1815,7 @@ int wxListMainWindow::GetSelectedItemCount( void ) if (line->IsHilighted()) ret++; node = node->Next(); } - return 0; + return ret; } void wxListMainWindow::SetMode( long mode )