git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70955
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// the label of the first column had been set it would have only one
// element and not numCols, so account for it
int numRemaining = m_colLabels.size() - colID;
// the label of the first column had been set it would have only one
// element and not numCols, so account for it
int numRemaining = m_colLabels.size() - colID;
- m_colLabels.RemoveAt( colID, wxMin(numCols, numRemaining) );
+ if (numRemaining > 0)
+ m_colLabels.RemoveAt( colID, wxMin(numCols, numRemaining) );
}
if ( numCols >= curNumCols )
}
if ( numCols >= curNumCols )