From 1a25cd629d218b5cbe5fdbb3750efeff58e2edbb Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Thu, 11 Feb 2010 09:10:45 +0000 Subject: [PATCH] Ensure we have full grid cells in source row when user clicks "Duplicate row". Fixes issue #1678. --- source/main.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/main.pas b/source/main.pas index f215c6e7..ac9aa840 100644 --- a/source/main.pas +++ b/source/main.pas @@ -7152,7 +7152,9 @@ begin DataGridResult.Rows[i].Cells[j].Text := ''; end; if Assigned(CopyValuesFromNode) then begin - // Copy values from source row + // Copy values from source row, ensure we have whole cell data + for j:=0 to DataGrid.Header.Columns.Count-1 do + EnsureFullWidth(DataGrid, j, CopyValuesFromNode); OldRow := DataGridResult.Rows[CopyValuesFromNode.Index]; for j:=0 to DataGrid.Header.Columns.Count-1 do begin if not (coVisible in DataGrid.Header.Columns[j].Options) then