Commit 368f9123 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Flush the output buffer before a codepage change.

parent 11f41aa0
......@@ -2397,8 +2397,11 @@ CharAttr(RTF_Info *info)
font = RTFGetFont(info, info->rtfParam);
if (font)
{
if (info->ansiCodePage != CP_UTF8)
if (info->ansiCodePage != CP_UTF8 && info->codePage != font->rtfFCodePage)
{
RTFFlushOutputBuffer(info);
info->codePage = font->rtfFCodePage;
}
TRACE("font %d codepage %d\n", info->rtfParam, info->codePage);
}
else
......
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