fpspreadsheet: Fix WorksheetGrid not being able to delete a cell block.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6323 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
edccbda8d8
commit
b6e1a4c495
@ -2144,6 +2144,8 @@ end;
|
|||||||
-------------------------------------------------------------------------------}
|
-------------------------------------------------------------------------------}
|
||||||
procedure TsWorksheet.DeleteCell(ACell: PCell);
|
procedure TsWorksheet.DeleteCell(ACell: PCell);
|
||||||
{$warning TODO: Shift cells to the right/below !!! ??? }
|
{$warning TODO: Shift cells to the right/below !!! ??? }
|
||||||
|
var
|
||||||
|
r, c: Cardinal;
|
||||||
begin
|
begin
|
||||||
if ACell = nil then
|
if ACell = nil then
|
||||||
exit;
|
exit;
|
||||||
@ -2159,8 +2161,13 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
r := ACell^.Row;
|
||||||
|
c := ACell^.Col;
|
||||||
|
|
||||||
// Destroy the cell, and remove it from the tree
|
// Destroy the cell, and remove it from the tree
|
||||||
RemoveAndFreeCell(ACell^.Row, ACell^.Col);
|
RemoveAndFreeCell(ACell^.Row, ACell^.Col);
|
||||||
|
|
||||||
|
ChangedCell(r, c);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{@@ ----------------------------------------------------------------------------
|
{@@ ----------------------------------------------------------------------------
|
||||||
|
@ -4630,6 +4630,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
VK_F2:
|
VK_F2:
|
||||||
FEnhEditMode := true;
|
FEnhEditMode := true;
|
||||||
|
VK_DELETE:
|
||||||
|
Worksheet.DeleteSelection;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
inherited;
|
inherited;
|
||||||
|
Loading…
Reference in New Issue
Block a user