mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 16:09:30 +02:00
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:
parent
002248b374
commit
559b2ebd92
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user