don't crash in HiglightAll() (called, in particular, from SortItems()) when the control is empty (patch 1821550)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2865,8 +2865,9 @@ void wxListMainWindow::HighlightAll( bool on )
|
|||||||
RefreshLine(m_current);
|
RefreshLine(m_current);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else // multi sel
|
else // multi selection
|
||||||
{
|
{
|
||||||
|
if ( !IsEmpty() )
|
||||||
HighlightLines(0, GetItemCount() - 1, on);
|
HighlightLines(0, GetItemCount() - 1, on);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user