You've already forked lazarus-ccr
Fixes 2897681 and 2897708 reported by Luiz Camara.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1007 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -544,14 +544,16 @@ procedure TsSpreadOpenDocWriter.WriteNumber(AStream: TStream; const ARow,
|
||||
var
|
||||
StrValue: string;
|
||||
DisplayStr: string;
|
||||
FSettings: TFormatSettings;
|
||||
begin
|
||||
// The row should already be the correct one
|
||||
if IsInfinite(AValue) then begin
|
||||
StrValue:='1.#INF';
|
||||
DisplayStr:='1.#INF';
|
||||
end else begin
|
||||
Str(AValue, StrValue);
|
||||
DisplayStr:=FloatToStr(AValue);
|
||||
FSettings.DecimalSeparator:='.';
|
||||
StrValue:=FloatToStr(AValue,FSettings); //Uses '.' as decimal separator
|
||||
DisplayStr:=FloatToStr(AValue); // Uses locale decimal separator
|
||||
end;
|
||||
FContent := FContent +
|
||||
' <table:table-cell office:value-type="float" office:value="' + StrValue + '">' + LineEnding +
|
||||
|
Reference in New Issue
Block a user