richedit: Added missing initialization of nAvailWidth for ME_TextEditor.

This commit is contained in:
Dylan Smith 2009-02-24 02:37:03 -05:00 committed by Alexandre Julliard
parent 3e50aaf201
commit b9b9835f93
1 changed files with 1 additions and 0 deletions

View File

@ -2635,6 +2635,7 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
ed->nParagraphs = 1;
ed->nLastSelStart = ed->nLastSelEnd = 0;
ed->pLastSelStartPara = ed->pLastSelEndPara = ME_FindItemFwd(ed->pBuffer->pFirst, diParagraph);
ed->nAvailWidth = 0; /* wrap to client area */
ed->bWordWrap = (props & TXTBIT_WORDWRAP) != 0;
ed->bHideSelection = FALSE;
ed->pfnWordBreak = NULL;