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:
@@ -2279,7 +2279,7 @@ long wxGridStringTable::GetNumberCols()
|
|||||||
|
|
||||||
wxString wxGridStringTable::GetValue( int row, int col )
|
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") );
|
_T("invalid row or column index in wxGridStringTable") );
|
||||||
|
|
||||||
return m_data[row][col];
|
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 )
|
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") );
|
_T("invalid row or column index in wxGridStringTable") );
|
||||||
|
|
||||||
m_data[row][col] = value;
|
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 )
|
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") );
|
_T("invalid row or column index in wxGridStringTable") );
|
||||||
|
|
||||||
return (m_data[row][col] == wxEmptyString);
|
return (m_data[row][col] == wxEmptyString);
|
||||||
|
Reference in New Issue
Block a user