From a154d474bd400bf4f2de176c2abcf386d74e82ad Mon Sep 17 00:00:00 2001 From: wp Date: Sat, 13 Apr 2019 22:06:33 +0000 Subject: [PATCH] TAChart: Use "nice" TListChartSource floating point numbers in data point editor and lfm file. Issue #35374, patch by Marcin Wiazowski. git-svn-id: trunk@60961 - --- components/tachart/tasources.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tachart/tasources.pas b/components/tachart/tasources.pas index 1bb84bcf7c..32a6200c5e 100644 --- a/components/tachart/tasources.pas +++ b/components/tachart/tasources.pas @@ -319,7 +319,7 @@ function TListChartSourceStrings.Get(Index: Integer): String; if IsNaN(AValue) then Result := '|' else - Result := Format('%g|', [AValue], DefSeparatorSettings); + Result := FloatToStr(AValue, DefSeparatorSettings) + '|'; end; var