OSDN Git Service

Fix a bug introduced in rev.7127 (Fix Testing\EditorTest build problem)
authorsdottaka <none@none>
Tue, 29 Jun 2010 15:29:56 +0000 (00:29 +0900)
committersdottaka <none@none>
Tue, 29 Jun 2010 15:29:56 +0000 (00:29 +0900)
Src/editlib/ccrystaltextbuffer.cpp

index 774a8a7..69ab2a6 100644 (file)
@@ -915,7 +915,7 @@ GetText (int nStartLine, int nStartChar, int nEndLine, int nEndChar,
               memcpy (pszBuf, li.GetLine(), sizeof (TCHAR) * nCount);
               pszBuf += nCount;
             }
-          pszCurCRLF = pszCRLF ? pszCRLF : startLine.GetEol();
+          pszCurCRLF = pszCRLF ? pszCRLF : li.GetEol();
              nCRLFLength = lstrlen(pszCurCRLF);
           memcpy (pszBuf, pszCurCRLF, sizeof (TCHAR) * nCRLFLength);
           pszBuf += nCRLFLength;