LCL: check also for csDestroying component state in Grid when setting edit test.

git-svn-id: trunk@40198 -
This commit is contained in:
juha 2013-02-06 15:59:10 +00:00
parent eab5aa8fb5
commit 248c598499

View File

@ -7359,7 +7359,8 @@ var
CurValue,NewValue: string;
begin
result := true;
if not (csDesigning in ComponentState) and (Editor<>nil) and Editor.Visible then begin
if (([csDesigning, csDestroying] * ComponentState) = [])
and (Editor<>nil) and Editor.Visible then begin
if validate then begin
CurValue := GetCells(FCol,FRow);