From 8b6eea0a630014842f36a176a61cdb61b95b1602 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sun, 23 Mar 2008 08:06:33 +0100 Subject: [PATCH] richedit: Fixed the initialization of the word wrap mode. --- dlls/riched20/editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 54fd4a3a6a6..091cdacb38b 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -1602,7 +1602,7 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd) { ed->nLastSelStart = ed->nLastSelEnd = 0; ed->pLastSelStartPara = ed->pLastSelEndPara = ME_FindItemFwd(ed->pBuffer->pFirst, diParagraph); ed->bRedraw = TRUE; - ed->bWordWrap = FALSE; + ed->bWordWrap = (GetWindowLongW(hWnd, GWL_STYLE) & WS_HSCROLL) ? FALSE : TRUE; ed->bHideSelection = FALSE; ed->nInvalidOfs = -1; ed->pfnWordBreak = NULL;