Eric Pouech : richedit: Fixed the initialization of the word wrap mode.
Module: wine Branch: master Commit: 8b6eea0a630014842f36a176a61cdb61b95b1602 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8b6eea0a630014842f36a176a6... Author: Eric Pouech <eric.pouech(a)orange.fr> Date: Sun Mar 23 08:06:33 2008 +0100 richedit: Fixed the initialization of the word wrap mode. --- dlls/riched20/editor.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 54fd4a3..091cdac 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;
participants (1)
-
Alexandre Julliard