Module: wine Branch: master Commit: c2631d853710378c4362db2258364f7c763d4578 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c2631d853710378c4362db2258...
Author: Eric Pouech eric.pouech@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;