IDE: fixed crash in menu editor, issue #22699

git-svn-id: trunk@38606 -
This commit is contained in:
mattias 2012-09-09 20:48:13 +00:00
parent cbaf2f7cd6
commit 451424cf20

View File

@ -1434,6 +1434,7 @@ var
InvalidateNeeded: Boolean;
DesignerMenuItem: TDesignerMenuItem;
begin
if not (Sender is TPropertyEditor) then Exit;
for i := 0 to TPropertyEditor(Sender).PropCount - 1 do
begin
Instance := TPropertyEditor(Sender).GetComponent(i);