mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 11:40:29 +02:00
LCL: in LCLMessageGlue.DeliverMessage, include the test "if Target is TLCLComponent" inside a try-except block.
git-svn-id: trunk@33547 -
This commit is contained in:
parent
89748aa75c
commit
fe125ef691
@ -101,12 +101,12 @@ begin
|
||||
{$ENDIF}
|
||||
RefCounted := False;
|
||||
try
|
||||
if Target is TLCLComponent then
|
||||
begin
|
||||
TLCLComponent(Target).IncLCLRefCount;
|
||||
RefCounted := True;
|
||||
end;
|
||||
try
|
||||
if Target is TLCLComponent then
|
||||
begin
|
||||
TLCLComponent(Target).IncLCLRefCount;
|
||||
RefCounted := True;
|
||||
end;
|
||||
if Target is TControl then
|
||||
TControl(Target).WindowProc(TLMessage(AMessage))
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user