Dylan Smith : richedit: Made sure table row gap/ offset is copied on append row.
Alexandre Julliard
julliard at winehq.org
Wed Oct 1 14:09:34 CDT 2008
Module: wine
Branch: master
Commit: c2bab443fa6ac2238e71f05c7cb840d16fc8ec11
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c2bab443fa6ac2238e71f05c7cb840d16fc8ec11
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Tue Sep 30 17:42:21 2008 -0400
richedit: Made sure table row gap/offset is copied on append row.
---
dlls/riched20/table.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/riched20/table.c b/dlls/riched20/table.c
index c4de61d..3581306 100644
--- a/dlls/riched20/table.c
+++ b/dlls/riched20/table.c
@@ -392,9 +392,10 @@ ME_DisplayItem* ME_AppendTableRow(ME_TextEditor *editor,
assert(table_row);
assert(table_row->type == diParagraph);
if (!editor->bEmulateVersion10) { /* v4.1 */
- ME_DisplayItem *insertedCell, *para, *cell;
+ ME_DisplayItem *insertedCell, *para, *cell, *prevTableEnd;
cell = ME_FindItemFwd(ME_GetTableRowStart(table_row), diCell);
- run = ME_GetTableRowEnd(table_row)->member.para.next_para;
+ prevTableEnd = ME_GetTableRowEnd(table_row);
+ run = prevTableEnd->member.para.next_para;
run = ME_FindItemFwd(run, diRun);
editor->pCursors[0].pRun = run;
editor->pCursors[0].nOffset = 0;
@@ -412,7 +413,8 @@ ME_DisplayItem* ME_AppendTableRow(ME_TextEditor *editor,
insertedCell->member.cell.nRightBoundary = cell->member.cell.nRightBoundary;
insertedCell->member.cell.border = cell->member.cell.border;
};
- ME_InsertTableRowEndFromCursor(editor);
+ para = ME_InsertTableRowEndFromCursor(editor);
+ *para->member.para.pFmt = *prevTableEnd->member.para.pFmt;
/* return the table row start for the inserted paragraph */
return ME_FindItemFwd(cell, diParagraph)->member.para.next_para;
} else { /* v1.0 - 3.0 */
More information about the wine-cvs
mailing list