You've already forked lazarus-ccr
fpspreadsheet: Fix location of merged cells in TsWorksheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3539 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -3155,15 +3155,25 @@ end;
|
|||||||
}
|
}
|
||||||
procedure TsCustomWorksheetGrid.MergeCells;
|
procedure TsCustomWorksheetGrid.MergeCells;
|
||||||
begin
|
begin
|
||||||
FWorksheet.MergeCells(Selection.Top, Selection.Left, Selection.Bottom, Selection.Right);
|
FWorksheet.MergeCells(
|
||||||
|
GetWorksheetRow(Selection.Top),
|
||||||
|
GetWorksheetCol(Selection.Left),
|
||||||
|
GetWorksheetRow(Selection.Bottom),
|
||||||
|
GetWorksheetCol(Selection.Right)
|
||||||
|
);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{@@
|
{@@
|
||||||
Merges the selected cells to a single large cell
|
Splits a merged cell block into single cells
|
||||||
}
|
}
|
||||||
procedure TsCustomWorksheetGrid.UnmergeCells;
|
procedure TsCustomWorksheetGrid.UnmergeCells;
|
||||||
begin
|
begin
|
||||||
FWorksheet.UnmergeCells(Selection.Top, Selection.Left, Selection.Bottom, Selection.Right);
|
FWorksheet.UnmergeCells(
|
||||||
|
GetWorksheetRow(Selection.Top),
|
||||||
|
GetWorksheetCol(Selection.Left),
|
||||||
|
GetWorksheetRow(Selection.Bottom),
|
||||||
|
GetWorksheetCol(Selection.Right)
|
||||||
|
);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{@@
|
{@@
|
||||||
|
Reference in New Issue
Block a user