Commit 296a59da authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

richedit: Force window update when the word wrap option has changed.

parent baded878
......@@ -3207,7 +3207,12 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
case EM_SETTARGETDEVICE:
if (wParam == 0)
{
editor->bWordWrap = (lParam == 0);
BOOL new = (lParam == 0);
if (editor->bWordWrap != new)
{
editor->bWordWrap = new;
ME_RewrapRepaint(editor);
}
}
else FIXME("Unsupported yet non NULL device in EM_SETTARGETDEVICE\n");
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment