Designer: Don't crash when a non-visual comp to be destroyed is painted on Qt. Triggered by Sparta designer. Issue #32206.

git-svn-id: trunk@55908 -
This commit is contained in:
juha 2017-09-23 23:09:08 +00:00
parent 002248b374
commit 559b2ebd92

View File

@ -3482,6 +3482,8 @@ begin
if (AComponent is TControl)
and (csNoDesignVisible in TControl(AComponent).ControlStyle) then
exit;
if (csDestroying in AComponent.ComponentState) then
exit;
// draw children
if (AComponent.Owner=nil) then