Commit 6e02f5db authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

richedit: In RTF reader, set both bold and weight attributes, so that we don't…

richedit: In RTF reader, set both bold and weight attributes, so that we don't care about priority between the two.
parent 0c2c43d3
...@@ -340,8 +340,9 @@ static void ME_RTFCharAttrHook(RTF_Info *info) ...@@ -340,8 +340,9 @@ static void ME_RTFCharAttrHook(RTF_Info *info)
fmt.bUnderlineType = CFU_UNDERLINENONE; fmt.bUnderlineType = CFU_UNDERLINENONE;
break; break;
case rtfBold: case rtfBold:
fmt.dwMask = CFM_BOLD; fmt.dwMask = CFM_BOLD | CFM_WEIGHT;
fmt.dwEffects = info->rtfParam ? fmt.dwMask : 0; fmt.dwEffects = info->rtfParam ? CFE_BOLD : 0;
fmt.wWeight = info->rtfParam ? FW_BOLD : FW_NORMAL;
break; break;
case rtfItalic: case rtfItalic:
fmt.dwMask = CFM_ITALIC; fmt.dwMask = CFM_ITALIC;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment