richedit: Correctly set the CFM_WEIGHT in charformat2.

This commit is contained in:
Eric Pouech 2008-01-01 22:03:34 +01:00 committed by Alexandre Julliard
parent a607ad316e
commit be785a295f
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ ME_LogFontFromStyle(HDC hDC, LOGFONTW *lf, const ME_Style *s, int nZoomNumerator
lf->lfWeight = 400;
if (s->fmt.dwEffects & s->fmt.dwMask & CFM_BOLD)
lf->lfWeight = 700;
if (s->fmt.dwEffects & s->fmt.dwMask & CFM_WEIGHT)
if (s->fmt.dwMask & CFM_WEIGHT)
lf->lfWeight = s->fmt.wWeight;
if (s->fmt.dwEffects & s->fmt.dwMask & CFM_ITALIC)
lf->lfItalic = 1;