lcl: fixed TDbLookupCombobox showing blank items when used with a TSdfDataset and FPC 2.6.4, bug #30931, patch from Luca Olivetti

git-svn-id: trunk@54950 -
This commit is contained in:
mattias 2017-05-17 14:36:26 +00:00
parent 80a8c39f9d
commit e8857ce5b7

View File

@ -281,7 +281,7 @@ begin
Bookmark := ListLinkDataSet.GetBookmark;
//in fpc 2.6.4, TMemDataset does not supports BlockRead. Issues 26356, 27959
{$IF FPC_FULLVERSION < 30000}
DatasetSupportsBlockRead := not IsClass(ListLinkDataSet, 'TMemDataset');
DatasetSupportsBlockRead := not IsClass(ListLinkDataSet, 'TMemDataset') and not IsClass(ListLinkDataSet, 'TFixedFormatDataSet');
if DatasetSupportsBlockRead then
ListLinkDataSet.BlockReadSize := 1
else