Eric Pouech : richedit: Only copy the charset when it's defined.
Module: wine Branch: master Commit: a3597cbe3b617b6f87f121880a5d29939f4c5dac URL: http://source.winehq.org/git/wine.git/?a=commit;h=a3597cbe3b617b6f87f121880a... Author: Eric Pouech <eric.pouech(a)orange.fr> Date: Fri Jan 4 21:12:03 2008 +0100 richedit: Only copy the charset when it's defined. --- dlls/riched20/style.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/riched20/style.c b/dlls/riched20/style.c index 91b8c36..453c15b 100644 --- a/dlls/riched20/style.c +++ b/dlls/riched20/style.c @@ -321,7 +321,8 @@ ME_LogFontFromStyle(ME_Context* c, LOGFONTW *lf, const ME_Style *s) lf->lfHeight = (lf->lfHeight*2)/3; /*lf.lfQuality = PROOF_QUALITY; */ lf->lfPitchAndFamily = s->fmt.bPitchAndFamily; - lf->lfCharSet = s->fmt.bCharSet; + if (s->fmt.dwMask & CFM_CHARSET) + lf->lfCharSet = s->fmt.bCharSet; } void ME_CharFormatFromLogFont(HDC hDC, const LOGFONTW *lf, CHARFORMAT2W *fmt)
participants (1)
-
Alexandre Julliard