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:
@@ -2478,7 +2478,10 @@ long wxListMainWindow::HitTestLine(size_t line, int x, int y) const
|
|||||||
if ( ld->HasImage() && GetLineIconRect(line).Inside(x, y) )
|
if ( ld->HasImage() && GetLineIconRect(line).Inside(x, y) )
|
||||||
return wxLIST_HITTEST_ONITEMICON;
|
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)
|
wxRect rect = InReportView() ? GetLineRect(line)
|
||||||
: GetLineLabelRect(line);
|
: GetLineLabelRect(line);
|
||||||
|
Reference in New Issue
Block a user