You've already forked lazarus-ccr
fpspreadsheet: Fix virtual mode ignoring style cell when writing ods. Issue #39045, patch by Bartek Dajewski,
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8574 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -8968,8 +8968,9 @@ begin
|
||||
InitCell(ASheet, r, c, lCell);
|
||||
value := varNull;
|
||||
styleCell := nil;
|
||||
|
||||
sheet.OnWriteCellData(sheet, r, c, value, styleCell);
|
||||
if styleCell <> nil then
|
||||
lCell.FormatIndex := styleCell^.FormatIndex;
|
||||
|
||||
if VarIsNull(value) then
|
||||
begin
|
||||
@ -8999,7 +9000,7 @@ begin
|
||||
if VarType(value) = varDate then
|
||||
begin
|
||||
lCell.ContentType := cctDateTime;
|
||||
lCell.DateTimeValue := StrToDateTime(VarToStr(value), Workbook.FormatSettings); // was: StrToDate
|
||||
lCell.DateTimeValue := VarToDateTime(value);
|
||||
end else
|
||||
if VarIsStr(value) then
|
||||
begin
|
||||
|
Reference in New Issue
Block a user