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: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2020-10-20 12:50:38 +01:00 committed by Alexandre Julliard
parent 2b817872cb
commit 218225548a
1 changed files with 3 additions and 7 deletions

View File

@ -658,14 +658,10 @@ void ME_RTFParAttrHook(RTF_Info *info)
para = para->member.para.next_para;
para = ME_InsertTableRowStartAtParagraph(info->editor, 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->canInheritInTbl = TRUE;
}