LCL: Fix a regression in TSTringGrid caused by r63541 #1f0ff07dc2. Test for Editor.Parent instead of Editor.Owner.

git-svn-id: trunk@63571 -
This commit is contained in:
juha 2020-07-16 09:26:39 +00:00
parent f70ef40567
commit e2840b9665

View File

@ -8414,7 +8414,7 @@ begin
begin
FEditorMode := False;
FGridState := gsNormal;
if Editor.Owner<>nil then // May be nil when the form is closing.
if Editor.Parent<>nil then // May be nil when the form is closing.
begin
WasFocused := Editor.Focused;
{$ifdef dbgGrid}DebugLnEnter('EditorHide [',Editor.ClassName,'] INIT FCol=',IntToStr(FCol),' FRow=',IntToStr(FRow));{$endif}