git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51532
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Split multi-line text up into an array of strings.
// Any existing contents of the string array are preserved.
//
// Split multi-line text up into an array of strings.
// Any existing contents of the string array are preserved.
//
+// TODO: refactor wxTextFile::Read() and reuse the same code from here
void wxGrid::StringToLines( const wxString& value, wxArrayString& lines ) const
{
int startPos = 0;
void wxGrid::StringToLines( const wxString& value, wxArrayString& lines ) const
{
int startPos = 0;
- lines.Add( value.Mid(startPos, pos) );
+ lines.Add( tVal.Mid(startPos, pos) );
if ( startPos < (int)value.length() )
{
if ( startPos < (int)value.length() )
{
- lines.Add( value.Mid( startPos ) );
+ lines.Add( tVal.Mid( startPos ) );