mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 00:00:39 +02:00
LCL-GTK2: Prevent a SIGSEGV in function DeliverMouseUpMessage(). Issue #40793, patch by Iluha Companets.
This commit is contained in:
parent
cb087dd6e5
commit
dcaf7e6bbe
@ -2274,7 +2274,7 @@ begin
|
|||||||
else if MessI.Result <> 0 then
|
else if MessI.Result <> 0 then
|
||||||
begin
|
begin
|
||||||
// issue #19914
|
// issue #19914
|
||||||
if GTK_IS_NOTEBOOK(Widget) then
|
if GTK_IS_NOTEBOOK(PGTKObject(AWinControl.Handle)) then
|
||||||
begin
|
begin
|
||||||
if g_object_get_data({%H-}PGObject(AWinControl.Handle),'lclnotebookdragging') <> nil then
|
if g_object_get_data({%H-}PGObject(AWinControl.Handle),'lclnotebookdragging') <> nil then
|
||||||
begin
|
begin
|
||||||
@ -2284,7 +2284,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
// handled by the LCL
|
// handled by the LCL
|
||||||
//DebugLn(['DeliverMouseUpMessage msg was handled by the LCL, Stopping signal ...']);
|
//DebugLn(['DeliverMouseUpMessage msg was handled by the LCL, Stopping signal ...']);
|
||||||
g_signal_stop_emission_by_name(PGTKObject(Widget), 'button-release-event');
|
//g_signal_stop_emission_by_name(PGTKObject(AWinControl.Handle), 'button-release-event');
|
||||||
Result := True;
|
Result := True;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user