mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 21:00:43 +02:00
TAChart: Fix incorrect handling quotes in TListChartSource.DataPoints. Issue #35155, patch by Marcin Wiazowski.
git-svn-id: trunk@60522 -
This commit is contained in:
parent
b10aae8c1c
commit
0bf11ad782
@ -452,7 +452,8 @@ begin
|
||||
end else
|
||||
Y := NaN;
|
||||
Color := StrToInt(NextPart);
|
||||
Text := StringReplace(NextPart, '""', '"', [rfReplaceall]);
|
||||
Text := NextPart;
|
||||
// Text := StringReplace(NextPart, '""', '"', [rfReplaceall]);
|
||||
end;
|
||||
finally
|
||||
parts.Free;
|
||||
|
@ -583,9 +583,15 @@ begin
|
||||
FSource.DataPoints.Add('1|2|3|?|"This is ""quoted"""');
|
||||
AssertEquals('This is "quoted"', FSource[11]^.Text);
|
||||
|
||||
FSource.DataPoints.Add('1|2|3|?|Single ".');
|
||||
AssertEquals('Single ".', FSource[12]^.Text);
|
||||
|
||||
FSource.DataPoints.Add('1|2|3|?|Two quotes "".');
|
||||
AssertEquals('Two quotes "".', FSource[13]^.Text);
|
||||
|
||||
// Check Text part containing separator and quotes
|
||||
FSource.DataPoints.Add('1|2|3|?|"Number of ""|"" items"');
|
||||
AssertEquals('Number of "|" items', FSource[12]^.Text);
|
||||
AssertEquals('Number of "|" items', FSource[14]^.Text);
|
||||
|
||||
// Check multiple x and y values
|
||||
FSource.Clear;
|
||||
|
Loading…
Reference in New Issue
Block a user