LCL: fix TValueListEditor LoadFromFile if to be loaded grid is empty. Part of issue #0036166.

git-svn-id: trunk@62044 -
This commit is contained in:
bart 2019-10-13 12:14:11 +00:00
parent 8c90dbc81a
commit 631b507057

View File

@ -1300,6 +1300,7 @@ begin
ContentSaved:=Cfg.GetValue('grid/saveoptions/content', false);
if ContentSaved then
begin
Clean(0,0,ColCount-1,RowCount-1,[]); //need if the to be loaded grid has no entries
HasColumnTitles := cfg.getValue('grid/content/hascolumntitles', False);
if HasColumnTitles then
DisplayOptions := DisplayOptions + [doColumnTitles]