richedit: Properly set the border width while parsing RTF stream.
This commit is contained in:
parent
9b2e552bf4
commit
9f5fa9ea45
|
@ -641,8 +641,7 @@ static void ME_RTFParAttrHook(RTF_Info *info)
|
|||
case rtfBorderWidth:
|
||||
ME_GetSelectionParaFormat(info->editor, &fmt);
|
||||
/* we assume that borders have been created before (RTF spec) */
|
||||
fmt.wBorders &= ~0x70;
|
||||
fmt.wBorders |= ((info->rtfParam / 15) & 7) << 8;
|
||||
fmt.wBorderWidth |= ((info->rtfParam / 15) & 7) << 8;
|
||||
break;
|
||||
case rtfBorderSpace:
|
||||
ME_GetSelectionParaFormat(info->editor, &fmt);
|
||||
|
|
Loading…
Reference in New Issue