richedit: Only copy the charset when it's defined.

This commit is contained in:
Eric Pouech 2008-01-04 21:12:03 +01:00 committed by Alexandre Julliard
parent 0e6d5202c8
commit a3597cbe3b
1 changed files with 2 additions and 1 deletions

View File

@ -321,7 +321,8 @@ ME_LogFontFromStyle(ME_Context* c, LOGFONTW *lf, const ME_Style *s)
lf->lfHeight = (lf->lfHeight*2)/3;
/*lf.lfQuality = PROOF_QUALITY; */
lf->lfPitchAndFamily = s->fmt.bPitchAndFamily;
lf->lfCharSet = s->fmt.bCharSet;
if (s->fmt.dwMask & CFM_CHARSET)
lf->lfCharSet = s->fmt.bCharSet;
}
void ME_CharFormatFromLogFont(HDC hDC, const LOGFONTW *lf, CHARFORMAT2W *fmt)