AnyGridEnsureFullRow already does a safety check for the right grid and returns True on all other grids.

This commit is contained in:
Ansgar Becker
2010-05-31 22:29:55 +00:00
parent 125995f37f
commit d447a9a1a7

View File

@ -7854,7 +7854,6 @@ begin
Grid := Control as TVirtualStringTree; Grid := Control as TVirtualStringTree;
if Assigned(Grid.FocusedNode) then begin if Assigned(Grid.FocusedNode) then begin
IsResultGrid := Grid = ActiveGrid; IsResultGrid := Grid = ActiveGrid;
if IsResultGrid then
AnyGridEnsureFullRow(Grid, Grid.FocusedNode); AnyGridEnsureFullRow(Grid, Grid.FocusedNode);
Clipboard.AsText := Grid.Text[Grid.FocusedNode, Grid.FocusedColumn]; Clipboard.AsText := Grid.Text[Grid.FocusedNode, Grid.FocusedColumn];
if IsResultGrid and DoCut then if IsResultGrid and DoCut then