mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 19:59:14 +02:00
copydataset won't find dataset if it's the last on the list
git-svn-id: trunk@7852 -
This commit is contained in:
parent
dd485801cc
commit
e8f011bf1e
@ -134,7 +134,7 @@ begin
|
||||
DSN:=Items[ItemIndex];
|
||||
DS:=Nil;
|
||||
I:=0;
|
||||
While (DS=Nil) and (I<F.ComponentCount-1) do
|
||||
While (DS=Nil) and (I<F.ComponentCount) do
|
||||
if (F.Components[i] is TDataset) and
|
||||
(F.Components[i].Name=DSN) then
|
||||
DS:=F.Components[i] as TDataset
|
||||
|
Loading…
Reference in New Issue
Block a user