lazreport: remove workaround for old fpc bug / add const for StringToFloatDef param

git-svn-id: trunk@25224 -
This commit is contained in:
blikblum 2010-05-05 20:10:28 +00:00
parent 5355942e1a
commit eb1c736e36

View File

@ -1511,7 +1511,7 @@ begin
end;
// locale neutral StrToFloatDef
function StringToFloatDef(S:String; const ADefault:Double): Double;
function StringToFloatDef(const S:String; const ADefault:Double): Double;
var
Code: Integer;
begin
@ -2420,11 +2420,7 @@ begin
if Length(s) > 0 then
begin
GetData(s);
// WORKAROUND: FPC BUG, setting Memo1.Text=char doesn't work
if (Length(s)=1)and(Length(Memo1.Text)=0) then
Memo1.Add(s)
else
Memo1.Text := Memo1.Text + s;
Memo1.Add(s)
end
else
Memo1.Add('');