You've already forked lazarus-ccr
fpspreadsheet: Fix reading of row and column formats from ods files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5261 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -3503,8 +3503,11 @@ var
|
||||
// sometimes split into two parts.
|
||||
cell := FWorksheet.FindCell(row, col);
|
||||
if cell <> nil then
|
||||
for i:=1 to colsRepeated-1 do
|
||||
FWorksheet.CopyCell(row, col, row, col+i);
|
||||
for i:=1 to colsRepeated-1 do begin
|
||||
cell := FWorksheet.CopyCell(row, col, row, col+i);
|
||||
styleIndex := ExtractFormatIndexFromStyle(cellStyleName, col+i);
|
||||
ApplyStyleToCell(cell, styleIndex);
|
||||
end;
|
||||
end;
|
||||
end
|
||||
else
|
||||
|
@ -374,8 +374,8 @@ type
|
||||
|
||||
{ Data manipulation methods - For Cells }
|
||||
procedure CopyCell(AFromCell, AToCell: PCell); overload;
|
||||
procedure CopyCell(AFromRow, AFromCol, AToRow, AToCol: Cardinal;
|
||||
AFromWorksheet: TsWorksheet = nil); overload;
|
||||
function CopyCell(AFromRow, AFromCol, AToRow, AToCol: Cardinal;
|
||||
AFromWorksheet: TsWorksheet = nil): PCell; overload;
|
||||
procedure CopyFormat(AFromCell, AToCell: PCell); overload;
|
||||
procedure CopyFormat(AFormatCell: PCell; AToRow, AToCol: Cardinal); overload;
|
||||
procedure CopyFormula(AFromCell, AToCell: PCell); overload;
|
||||
@ -1723,9 +1723,11 @@ end;
|
||||
@param AToRow Row index of the destination cell
|
||||
@param AToCol Column index of the destination cell
|
||||
@param AFromWorksheet Worksheet containing the source cell. Self, if omitted.
|
||||
|
||||
@return Created new destination cell
|
||||
-------------------------------------------------------------------------------}
|
||||
procedure TsWorksheet.CopyCell(AFromRow, AFromCol, AToRow, AToCol: Cardinal;
|
||||
AFromWorksheet: TsWorksheet = nil);
|
||||
function TsWorksheet.CopyCell(AFromRow, AFromCol, AToRow, AToCol: Cardinal;
|
||||
AFromWorksheet: TsWorksheet = nil): PCell;
|
||||
var
|
||||
srcCell, destCell: PCell;
|
||||
begin
|
||||
@ -1739,6 +1741,8 @@ begin
|
||||
|
||||
ChangedCell(AToRow, AToCol);
|
||||
ChangedFont(AToRow, AToCol);
|
||||
|
||||
Result := destCell;
|
||||
end;
|
||||
|
||||
{@@ ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user