asserts in wxGridStringTable corrected

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-03-01 17:21:00 +00:00
parent c733b2224f
commit 831243b127

View File

@@ -2279,7 +2279,7 @@ long wxGridStringTable::GetNumberCols()
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];
@@ -2287,7 +2287,7 @@ wxString wxGridStringTable::GetValue( int row, int 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;
@@ -2295,7 +2295,7 @@ void wxGridStringTable::SetValue( int row, int col, const wxString& 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);