TStringGrid: also call DoCellProcess when pasting HTML. Issue #0036576.

git-svn-id: trunk@62621 -
This commit is contained in:
bart 2020-02-08 18:11:34 +00:00
parent 0d5ae4a252
commit acc7de51bd

View File

@ -11700,7 +11700,11 @@ begin
if bTagEnd then // table end cell tag </td>
begin
if IsColumnIndexValid(bCol) and IsRowIndexValid(bRow) then
Cells[bCol, bRow] := ReplaceEntities(bCellStr);
begin
bCellStr := ReplaceEntities(bCellStr);
DoCellProcess(bCol, bRow, cpPaste, bCellStr);
Cells[bCol, bRow] := bCellStr;
end;
bSelRect.Right := bCol;
Inc(bCol);
bCellStr := '';
@ -11724,7 +11728,11 @@ begin
end;
end;
if (bCol = bStartCol) and (bRow = bStartRow) then Cells[bCol, bRow] := TheText; //set text in cell if clipboard has CF_HTML fomat, but havent HTML table
if (bCol = bStartCol) and (bRow = bStartRow) then
begin
DoCellProcess(bCol, bRow, cpPaste, TheText);
Cells[bCol, bRow] := TheText; //set text in cell if clipboard has CF_HTML fomat, but havent HTML table
end;
Selection := bSelRect; // set correct selection
end;
end;