[PATCH 03/24] [RichEdit]: Correctly set the CFM_WEIGHT in charformat2
Eric Pouech
eric.pouech at orange.fr
Tue Jan 1 15:03:34 CST 2008
A+
---
dlls/riched20/style.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/style.c b/dlls/riched20/style.c
index ad508fa..01715ac 100644
--- a/dlls/riched20/style.c
+++ b/dlls/riched20/style.c
@@ -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;
More information about the wine-patches
mailing list