From: Vadim Zeitlin Date: Sun, 3 Feb 2008 23:43:58 +0000 (+0000) Subject: another correction to indices used in StringToLines() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2eafd712f13ebf2567d65c8ba5c78ef7006ff023 another correction to indices used in StringToLines() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index ecadf47f42..7d98bcb1ea 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -8133,7 +8133,7 @@ void wxGrid::StringToLines( const wxString& value, wxArrayString& lines ) const startPos += pos + 1; } - if ( startPos < (int)value.length() ) + if ( startPos < (int)tVal.length() ) { lines.Add( tVal.Mid( startPos ) ); }