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

This commit is contained in:
Eric Pouech 2008-03-16 21:45:39 +01:00 committed by Alexandre Julliard
parent 9b2e552bf4
commit 9f5fa9ea45
1 changed files with 1 additions and 2 deletions

View File

@ -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);