Fixed reading in non US locales (decimal separator = '.') of floating point data in Open Document.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@949 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
Joshy
2009-09-02 01:22:46 +00:00
parent 9c7a5199c7
commit 7f32d73b05

View File

@ -235,8 +235,11 @@ begin
end;
procedure TsSpreadOpenDocReader.ReadNumber(ARow: Word; ACol : Word; ACellNode : TDOMNode);
var
FSettings: TFormatSettings;
begin
FWorkSheet.WriteNumber(Arow,ACol,StrToFloat(ACellNode.TextContent));
FSettings.DecimalSeparator:='.';
FWorkSheet.WriteNumber(Arow,ACol,StrToFloat(ACellNode.TextContent,FSettings));
end;
{ TsSpreadOpenDocWriter }