From: Václav Slavík Date: Sat, 16 Mar 2002 19:34:15 +0000 (+0000) Subject: make it possible to have empty lines in wxListCtrl X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/acf4d8587a07e4750fd6217c5a371f1d58194d89?ds=inline 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 --- diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index e643ee26b5..0c4facf2c8 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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);