mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:15:38 +00:00
richedit: The wrong bits were cleared from wBorders in PARAFORMAT2.
This commit is contained in:
parent
6f11b1b354
commit
76029ee9ec
|
@ -620,31 +620,31 @@ static void ME_RTFParAttrHook(RTF_Info *info)
|
|||
case rtfBorderSingle:
|
||||
ME_GetSelectionParaFormat(info->editor, &fmt);
|
||||
/* we assume that borders have been created before (RTF spec) */
|
||||
fmt.wBorders &= ~0x70;
|
||||
fmt.wBorders &= ~0x700;
|
||||
fmt.wBorders |= 1 << 8;
|
||||
break;
|
||||
case rtfBorderThick:
|
||||
ME_GetSelectionParaFormat(info->editor, &fmt);
|
||||
/* we assume that borders have been created before (RTF spec) */
|
||||
fmt.wBorders &= ~0x70;
|
||||
fmt.wBorders &= ~0x700;
|
||||
fmt.wBorders |= 2 << 8;
|
||||
break;
|
||||
case rtfBorderShadow:
|
||||
ME_GetSelectionParaFormat(info->editor, &fmt);
|
||||
/* we assume that borders have been created before (RTF spec) */
|
||||
fmt.wBorders &= ~0x70;
|
||||
fmt.wBorders &= ~0x700;
|
||||
fmt.wBorders |= 10 << 8;
|
||||
break;
|
||||
case rtfBorderDouble:
|
||||
ME_GetSelectionParaFormat(info->editor, &fmt);
|
||||
/* we assume that borders have been created before (RTF spec) */
|
||||
fmt.wBorders &= ~0x70;
|
||||
fmt.wBorders &= ~0x700;
|
||||
fmt.wBorders |= 7 << 8;
|
||||
break;
|
||||
case rtfBorderDot:
|
||||
ME_GetSelectionParaFormat(info->editor, &fmt);
|
||||
/* we assume that borders have been created before (RTF spec) */
|
||||
fmt.wBorders &= ~0x70;
|
||||
fmt.wBorders &= ~0x700;
|
||||
fmt.wBorders |= 11 << 8;
|
||||
break;
|
||||
case rtfBorderWidth:
|
||||
|
|
Loading…
Reference in a new issue