TAChart: Default color for list source data points should be clTAColor, not 0.

git-svn-id: trunk@20156 -
This commit is contained in:
ask 2009-05-24 06:35:53 +00:00
parent 029339a761
commit 1245e6e6ed

View File

@ -319,7 +319,8 @@ end;
function TListChartSourceStrings.Get(Index: Integer): string;
begin
with FSource[Index]^ do
Result := Format('%g|%g|%d|%s', [X, Y, Color, Text]);
Result := Format('%g|%g|%s|%s',
[X, Y, IfThen(Color = clTAColor, '', '$' + IntToHex(Color, 6)), Text]);
end;
function TListChartSourceStrings.GetCount: Integer;
@ -352,7 +353,7 @@ begin
with ADataItem^ do begin
X := StrToFloatDef(NextPart, 0.0);
Y := StrToFloatDef(NextPart, 0.0);
Color := StrToIntDef(NextPart, 0);
Color := StrToIntDef(NextPart, clTAColor);
Text := NextPart;
end;
end;