wxString wxGridStringTable::GetValue( int row, int col )
{
- wxASSERT_MSG( (row < GetNumberCols()) && (col < GetNumberCols()),
+ wxASSERT_MSG( (row < GetNumberRows()) && (col < GetNumberCols()),
_T("invalid row or column index in wxGridStringTable") );
return m_data[row][col];
void wxGridStringTable::SetValue( int row, int col, const wxString& value )
{
- wxASSERT_MSG( (row < GetNumberCols()) && (col < GetNumberCols()),
+ wxASSERT_MSG( (row < GetNumberRows()) && (col < GetNumberCols()),
_T("invalid row or column index in wxGridStringTable") );
m_data[row][col] = value;
bool wxGridStringTable::IsEmptyCell( int row, int col )
{
- wxASSERT_MSG( (row < GetNumberCols()) && (col < GetNumberCols()),
+ wxASSERT_MSG( (row < GetNumberRows()) && (col < GetNumberCols()),
_T("invalid row or column index in wxGridStringTable") );
return (m_data[row][col] == wxEmptyString);