From 918a6614faababedbb26ed1b615884026b93f97a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 3 Feb 2008 23:43:58 +0000 Subject: [PATCH] another correction to indices used in StringToLines() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 2d953a621e..c3752751b5 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -8213,7 +8213,7 @@ void wxGrid::StringToLines( const wxString& value, wxArrayString& lines ) startPos += pos + 1; } - if ( startPos < (int)value.length() ) + if ( startPos < (int)tVal.length() ) { lines.Add( tVal.Mid( startPos ) ); }