ChrisMaunder/MFC-GridCtrl

index overflow in m_arRowOrder(and m_arColOrder)

Opened this issue · 1 comments

in line 3886:
m_nCols++;

leads to m_arColOrder being to small. a hotfix : add
m_arColOrder.push_back(m_nCols);//add sort order for new col

just before. But this might spoil sort order in some cases (not sure). The same problem occurs for m_nRows++ in 3963 i guess

I have been using the previous version of the control because it was modified with cell merging. For column order I ending up writing my own function .