You've already forked lazarus-ccr
fpspreadsheet: opendocument format, write numbers without localized decimal separator, fixes https://sourceforge.net/tracker/?func=detail&aid=2813780&group_id=92177&atid=599764
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@889 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -542,10 +542,13 @@ end;
|
|||||||
|
|
||||||
procedure TsSpreadOpenDocWriter.WriteNumber(AStream: TStream; const ARow,
|
procedure TsSpreadOpenDocWriter.WriteNumber(AStream: TStream; const ARow,
|
||||||
ACol: Cardinal; const AValue: double);
|
ACol: Cardinal; const AValue: double);
|
||||||
|
var
|
||||||
|
StrValue: string;
|
||||||
begin
|
begin
|
||||||
// The row should already be the correct one
|
// The row should already be the correct one
|
||||||
|
Str(AValue, StrValue);
|
||||||
FContent := FContent +
|
FContent := FContent +
|
||||||
' <table:table-cell office:value-type="float" office:value="' + FloatToStr(AValue) + '">' + LineEnding +
|
' <table:table-cell office:value-type="float" office:value="' + StrValue + '">' + LineEnding +
|
||||||
' <text:p>' + FloatToStr(AValue) + '</text:p>' + LineEnding +
|
' <text:p>' + FloatToStr(AValue) + '</text:p>' + LineEnding +
|
||||||
' </table:table-cell>' + LineEnding;
|
' </table:table-cell>' + LineEnding;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user