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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user