Move assert for calling SetItemCount() without wxLC_VIRTUAL

This makes it more clear that the base class method is not supposed to
be called.
This commit is contained in:
Vadim Zeitlin
2019-09-15 00:56:36 +02:00
parent 409748be72
commit 9a182d0982

View File

@@ -709,6 +709,7 @@ public:
virtual void SetVirtualItemCount(long WXUNUSED(count))
{
wxFAIL_MSG("Shouldn't be called if wxLC_VIRTUAL is not used");
}
protected:
@@ -1798,7 +1799,6 @@ long wxListCtrl::DoInsertColumn(long col, const wxListItem& info)
void wxListCtrl::SetItemCount(long count)
{
wxASSERT(HasFlag(wxLC_VIRTUAL));
m_model->SetVirtualItemCount(count);
}