make it possible to have empty lines in wxListCtrl

in report mode (mandatory for wxEditableListBox)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-03-16 19:34:15 +00:00
parent 55232d19fe
commit acf4d8587a

View File

@@ -2478,7 +2478,10 @@ long wxListMainWindow::HitTestLine(size_t line, int x, int y) const
if ( ld->HasImage() && GetLineIconRect(line).Inside(x, y) )
return wxLIST_HITTEST_ONITEMICON;
if ( ld->HasText() )
// VS: Testing for "ld->HasText() || InReportView()" instead of
// "ld->HasText()" is needed to make empty lines in report view
// possible
if ( ld->HasText() || InReportView() )
{
wxRect rect = InReportView() ? GetLineRect(line)
: GetLineLabelRect(line);