I have just used C::B (current trunk) on Mint 18 and get an assertion when closing C::B. It only asserts with the release, not the debug version, so I have a limited backtrace.
../src/generic/listctrl.cpp (3386)
assert "litem >= 0 && (size_t)litem < GetItemCount() failed in SetItemState(): invalid list ctrl item index in SetItem
Backtrace
1 wxGenericListCtrl::SetItemState(long, long, long)
2 JumpTrackerView::SetJumpTrackerViewIndex(int)
3 JumpTracker::SetJumpTrackerViewIndex(int)
4 JumpTracker::JumpDataAdd(wxString const&, long, long)
5 JumpTracker::OnEditorActivated(CodeBlocksEvent&)
Leap-15.6-64bits, gcc-1520, wx-328, gtk3-unicode-3.2
Cb13752
Identical problem :
I did this :
void SetJumpTrackerViewIndex(int itemIndex)
{
if (itemIndex < 0)
return;
int knt = m_pListCtrl->GetItemCount();
if (knt < 0)
return;
if (itemIndex >= knt)
return; //setting index before adding the item
m_pListCtrl->SetItemState(itemIndex, wxLIST_STATE_SELECTED , wxLIST_STATE_SELECTED);
}
I'm testing a day ...