diff --git a/grepWinNP3/grepWinNP3.vcxproj b/grepWinNP3/grepWinNP3.vcxproj index e076cf76a..50f42e30d 100644 --- a/grepWinNP3/grepWinNP3.vcxproj +++ b/grepWinNP3/grepWinNP3.vcxproj @@ -296,26 +296,32 @@ Designer - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/grepWinNP3/grepWinNP3.vcxproj.filters b/grepWinNP3/grepWinNP3.vcxproj.filters index 54c458bcd..619cecc3e 100644 --- a/grepWinNP3/grepWinNP3.vcxproj.filters +++ b/grepWinNP3/grepWinNP3.vcxproj.filters @@ -19,7 +19,7 @@ {9e218bba-f3cf-4af8-b8b0-538877ab3ae2} - + {5fd907ec-eafb-47ec-aa1a-6c84ea9ec37e} @@ -307,65 +307,85 @@ Resource Files - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - - translations - - + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + + + translationsNP3 + diff --git a/grepWinNP3/sktoolslib_mod/TextFile.cpp b/grepWinNP3/sktoolslib_mod/TextFile.cpp index 9f0cd1698..2229fbfb4 100644 --- a/grepWinNP3/sktoolslib_mod/TextFile.cpp +++ b/grepWinNP3/sktoolslib_mod/TextFile.cpp @@ -561,9 +561,9 @@ std::wstring CTextFile::GetLineString(long lineNumber) const long startpos = 0; if (lineNumber > 1) - startpos = (long)linepositions[lineNumber - 2]; + startpos = (long)linepositions[lineNumber - 2] + 1; std::wstring endchars(L"\n\0", 2); - size_t endpos = textcontent.find_first_of(endchars, startpos + 1); + size_t endpos = textcontent.find_first_of(endchars, startpos); std::wstring line; if (endpos != std::wstring::npos) line = std::wstring(textcontent.begin() + startpos, textcontent.begin() + endpos);