Eric Pouech : richedit: Correctly set the CFM_WEIGHT in charformat2.

Alexandre Julliard julliard at winehq.org
Wed Jan 2 07:34:48 CST 2008


Module: wine
Branch: master
Commit: be785a295fcfeb2d57db0f9b160620553587752e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=be785a295fcfeb2d57db0f9b160620553587752e

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Tue Jan  1 22:03:34 2008 +0100

richedit: Correctly set the CFM_WEIGHT in charformat2.

---

 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-cvs mailing list