TValueListEditor: Fix possible crash in TValueListStrings.Put.

git-svn-id: trunk@40523 -
This commit is contained in:
bart 2013-03-09 17:48:24 +00:00
parent 19779223aa
commit 8cb6307e5c

View File

@ -547,7 +547,8 @@ begin
end
else
EditorHasFocus := Assigned(FGrid.Editor) and FGrid.Editor.Focused;
MustHideShowingEditor := (goAlwaysShowEditor in FGrid.Options) and
MustHideShowingEditor := Assigned(FGrid.Editor) and
(goAlwaysShowEditor in FGrid.Options) and
FGrid.Editor.Visible and
(IndexToRow = FGrid.Row) and
//if editor is Focussed, we are editing a cell, so we cannot hide!