Dylan Smith : richedit: The wrong bits were cleared from wBorders in PARAFORMAT2.
Module: wine Branch: master Commit: 76029ee9ec73940b738f5c5cc6b6bc04120e7309 URL: http://source.winehq.org/git/wine.git/?a=commit;h=76029ee9ec73940b738f5c5cc6... Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Mon May 5 15:11:50 2008 -0400 richedit: The wrong bits were cleared from wBorders in PARAFORMAT2. --- dlls/riched20/editor.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 9e93091..1ae0e23 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -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:
participants (1)
-
Alexandre Julliard