Eric Pouech : richedit: Correctly copy the pitch and family field.

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


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

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

richedit: Correctly copy the pitch and family field.

---

 dlls/riched20/style.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/riched20/style.c b/dlls/riched20/style.c
index 01715ac..1113f73 100644
--- a/dlls/riched20/style.c
+++ b/dlls/riched20/style.c
@@ -174,7 +174,9 @@ ME_Style *ME_ApplyStyle(ME_Style *sSrc, CHARFORMAT2W *style)
   COPY_STYLE_ITEM(CFM_STYLE, sStyle);
   COPY_STYLE_ITEM(CFM_UNDERLINETYPE, bUnderlineType);
   COPY_STYLE_ITEM(CFM_WEIGHT, wWeight);
-  
+  /* FIXME: this is not documented this way, but that's the more logical */
+  COPY_STYLE_ITEM(CFM_FACE, bPitchAndFamily);
+
   s->fmt.dwEffects &= ~(style->dwMask);
   s->fmt.dwEffects |= style->dwEffects & style->dwMask;
   s->fmt.dwMask |= style->dwMask;




More information about the wine-cvs mailing list