You've already forked lazarus-ccr
fpspreadsheet: Fix biff2 reader interpreting "general" number format as nfCustom.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4163 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -301,6 +301,14 @@ begin
|
|||||||
section := @FSections[ASection];
|
section := @FSections[ASection];
|
||||||
section^.Kind := [];
|
section^.Kind := [];
|
||||||
|
|
||||||
|
if (ASection = 0) and (Length(FSections) = 1) and (Length(section^.Elements) = 1)
|
||||||
|
and (section^.Elements[0].Token = nftGeneral)
|
||||||
|
then begin
|
||||||
|
section^.NumFormat := nfGeneral;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
i := 0;
|
i := 0;
|
||||||
isMonthMinute := false;
|
isMonthMinute := false;
|
||||||
|
|
||||||
|
@ -934,7 +934,8 @@ begin
|
|||||||
nf := Workbook.GetNumberFormat(fmt.NumberFormatIndex);
|
nf := Workbook.GetNumberFormat(fmt.NumberFormatIndex);
|
||||||
fmt.NumberFormat := nf.NumFormat;
|
fmt.NumberFormat := nf.NumFormat;
|
||||||
fmt.NumberFormatStr := nf.NumFormatStr;
|
fmt.NumberFormatStr := nf.NumFormatStr;
|
||||||
Include(fmt.UsedFormattingFields, uffNumberFormat);
|
if fmt.NumberFormat <> nfGeneral then
|
||||||
|
Include(fmt.UsedFormattingFields, uffNumberFormat);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// Horizontal alignment
|
// Horizontal alignment
|
||||||
|
Reference in New Issue
Block a user