mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 11:22:38 +02:00
LCL: Do not try to access a method of nil AControl in class procedure TDockHeader.PerformMouseDown, fixes crashes in some cases. Issue #41675, hint by Hans vB.
This commit is contained in:
parent
31a7b58b21
commit
38d47de87b
@ -504,6 +504,8 @@ end;
|
||||
class procedure TDockHeader.PerformMouseDown(AControl: TControl;
|
||||
APart: TLazDockHeaderPart);
|
||||
begin
|
||||
if AControl=nil then
|
||||
exit;
|
||||
case APart of
|
||||
ldhpAll, ldhpCaption:
|
||||
// mouse down on not buttons => start drag
|
||||
|
Loading…
Reference in New Issue
Block a user