[PATCH 12/16] [RichEdit]: in RTF reader, set both bold and weight attributes, so that we don't care about priority between the two

Eric Pouech eric.pouech at orange.fr
Sat Mar 15 16:06:31 CDT 2008




A+
---

 dlls/riched20/editor.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 4a7fdf0..d111524 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -340,8 +340,9 @@ static void ME_RTFCharAttrHook(RTF_Info *info)
       fmt.bUnderlineType = CFU_UNDERLINENONE;
       break;
     case rtfBold:
-      fmt.dwMask = CFM_BOLD;
-      fmt.dwEffects = info->rtfParam ? fmt.dwMask : 0;
+      fmt.dwMask = CFM_BOLD | CFM_WEIGHT;
+      fmt.dwEffects = info->rtfParam ? CFE_BOLD : 0;
+      fmt.wWeight = info->rtfParam ? FW_BOLD : FW_NORMAL;
       break;
     case rtfItalic:
       fmt.dwMask = CFM_ITALIC;





More information about the wine-patches mailing list