Eric Pouech : richedit: Properly set the border width while parsing RTF stream.
Module: wine Branch: master Commit: 9f5fa9ea45c24602a59607c28f37a6f2335001ac URL: http://source.winehq.org/git/wine.git/?a=commit;h=9f5fa9ea45c24602a59607c28f... Author: Eric Pouech <eric.pouech(a)orange.fr> Date: Sun Mar 16 21:45:39 2008 +0100 richedit: Properly set the border width while parsing RTF stream. --- 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);
participants (1)
-
Alexandre Julliard