[PATCH 05/16] [RichEdit]: when handling \pard in RTF stream, really resets all paragraph styles
Eric Pouech
eric.pouech at orange.fr
Sat Mar 15 16:05:31 CDT 2008
A+
---
dlls/riched20/editor.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 7acbf4c..f554eae 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -452,10 +452,15 @@ static void ME_RTFParAttrHook(RTF_Info *info)
switch(info->rtfMinor)
{
case rtfParDef: /* restores default paragraph attributes */
- fmt.dwMask = PFM_ALIGNMENT | PFM_TABSTOPS | PFM_OFFSET | PFM_STARTINDENT;
+ fmt.dwMask = PFM_ALIGNMENT | PFM_BORDER | PFM_LINESPACING | PFM_TABSTOPS | PFM_OFFSET |
+ PFM_RIGHTINDENT | PFM_SPACEAFTER | PFM_SPACEBEFORE | PFM_STARTINDENT;
+ /* TODO: numbering, shading */
fmt.wAlignment = PFA_LEFT;
fmt.cTabCount = 0;
- fmt.dxOffset = fmt.dxStartIndent = 0;
+ fmt.dxOffset = fmt.dxStartIndent = fmt.dxRightIndent = 0;
+ fmt.wBorderWidth = fmt.wBorders = 0;
+ fmt.bLineSpacingRule = 0;
+ fmt.dySpaceBefore = fmt.dySpaceAfter = 0;
RTFFlushOutputBuffer(info);
ME_GetParagraph(info->editor->pCursors[0].pRun)->member.para.bTable = FALSE;
break;
More information about the wine-patches
mailing list