Commit 21822554 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Don't split the paragraph at the first \intbl.

The whole of the current paragraph should be included in the table. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 2b817872
...@@ -658,14 +658,10 @@ void ME_RTFParAttrHook(RTF_Info *info) ...@@ -658,14 +658,10 @@ void ME_RTFParAttrHook(RTF_Info *info)
para = para->member.para.next_para; para = para->member.para.next_para;
para = ME_InsertTableRowStartAtParagraph(info->editor, para); para = ME_InsertTableRowStartAtParagraph(info->editor, para);
tableDef->tableRowStart = para; tableDef->tableRowStart = para;
} else {
ME_Cursor cursor;
WCHAR endl = '\r';
cursor = info->editor->pCursors[0];
if (cursor.nOffset || cursor.pRun->member.run.nCharOfs)
ME_InsertTextFromCursor(info->editor, 0, &endl, 1, info->style);
tableDef->tableRowStart = ME_InsertTableRowStartFromCursor(info->editor);
} }
else
tableDef->tableRowStart = ME_InsertTableRowStartAtParagraph( info->editor,
info->editor->pCursors[0].pPara );
info->nestingLevel = 1; info->nestingLevel = 1;
info->canInheritInTbl = TRUE; info->canInheritInTbl = TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment