From c0d550ed921325d09a05e930a3dc0f2814faa600 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 3 Feb 2008 21:06:17 +0000 Subject: [PATCH] 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 --- src/generic/grid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 5573d9513e..2d953a621e 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -8207,7 +8207,7 @@ void wxGrid::StringToLines( const wxString& value, wxArrayString& lines ) } else { - lines.Add( value.Mid(startPos, pos) ); + lines.Add( tVal.Mid(startPos, pos) ); } startPos += pos + 1; @@ -8215,7 +8215,7 @@ void wxGrid::StringToLines( const wxString& value, wxArrayString& lines ) if ( startPos < (int)value.length() ) { - lines.Add( value.Mid( startPos ) ); + lines.Add( tVal.Mid( startPos ) ); } }