From dedc5fb828f07003eb2bfb4356055baec8490a5c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 3 May 2017 15:16:26 +0300 Subject: if we need to count symbols, we to count CRLF too --- src/mir_core/src/CCtrlRichEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mir_core') diff --git a/src/mir_core/src/CCtrlRichEdit.cpp b/src/mir_core/src/CCtrlRichEdit.cpp index 7c874f50f5..5fd2203d5d 100644 --- a/src/mir_core/src/CCtrlRichEdit.cpp +++ b/src/mir_core/src/CCtrlRichEdit.cpp @@ -39,7 +39,7 @@ int CCtrlRichEdit::GetRichTextLength(int iCodePage) const if (iCodePage == CP_ACP) gtl.flags |= GTL_NUMBYTES; else - gtl.flags |= GTL_NUMCHARS; + gtl.flags |= GTL_NUMCHARS | GT_USECRLF; return (int)SendMessage(m_hwnd, EM_GETTEXTLENGTHEX, (WPARAM)>l, 0); } -- cgit v1.2.3