mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 21:20:28 +02:00
TAChart: Use RecNo as X value if TDbChartSource.FieldX is empty.
Patch by José Mejuto git-svn-id: trunk@27551 -
This commit is contained in:
parent
67a5cb4020
commit
80b1644c82
@ -64,7 +64,7 @@
|
||||
<Version Value="9"/>
|
||||
<PathDelim Value="\"/>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir)\"/>
|
||||
<IncludeFiles Value="$(ProjOutDir)"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<Parsing>
|
||||
|
@ -192,7 +192,9 @@ begin
|
||||
ds.Next;
|
||||
if ds.RecNo <> AIndex then exit;
|
||||
if FieldX <> '' then
|
||||
FCurItem.X := ds.FieldByName(FieldX).AsFloat;
|
||||
FCurItem.X := ds.FieldByName(FieldX).AsFloat
|
||||
else
|
||||
FCurItem.X := ds.RecNo;
|
||||
if FYCount > 0 then begin
|
||||
FCurItem.Y := ds.FieldByName(FFieldYList[0]).AsFloat;
|
||||
for i := 0 to High(FCurItem.YList) do
|
||||
|
Loading…
Reference in New Issue
Block a user