|
@@ -3028,7 +3028,7 @@ end;
|
|
|
|
|
|
function TCustomBufDataset.GetIndexName: String;
|
|
function TCustomBufDataset.GetIndexName: String;
|
|
begin
|
|
begin
|
|
- if FIndexes.Count>0 then
|
|
|
|
|
|
+ if (FIndexes.Count>0) and (CurrentIndexBuf <> nil) then
|
|
result := CurrentIndexBuf.Name
|
|
result := CurrentIndexBuf.Name
|
|
else
|
|
else
|
|
result := FIndexName;
|
|
result := FIndexName;
|