correct indices used in StringToLines() (modified patch 1882985)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -8207,7 +8207,7 @@ void wxGrid::StringToLines( const wxString& value, wxArrayString& lines )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
lines.Add( value.Mid(startPos, pos) );
|
lines.Add( tVal.Mid(startPos, pos) );
|
||||||
}
|
}
|
||||||
|
|
||||||
startPos += pos + 1;
|
startPos += pos + 1;
|
||||||
@@ -8215,7 +8215,7 @@ void wxGrid::StringToLines( const wxString& value, wxArrayString& lines )
|
|||||||
|
|
||||||
if ( startPos < (int)value.length() )
|
if ( startPos < (int)value.length() )
|
||||||
{
|
{
|
||||||
lines.Add( value.Mid( startPos ) );
|
lines.Add( tVal.Mid( startPos ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user