Commit 9f5fa9ea authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

richedit: Properly set the border width while parsing RTF stream.

parent 9b2e552b
......@@ -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);
......
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