richedit: In RTF reader, set both bold and weight attributes, so that we don't care about priority between the two.
This commit is contained in:
parent
0c2c43d39b
commit
6e02f5db4b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue