[PATCH 02/16] [RichEdit]: properly set the border width while parsing RTF stream
Eric Pouech
eric.pouech at orange.fr
Sat Mar 15 16:05:12 CDT 2008
A+
---
dlls/riched20/editor.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 84f7572..a803773 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -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);
More information about the wine-patches
mailing list