mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 07:29:30 +02:00
LCL-GTK2: Prevent a SIGSEGV in function DeliverMouseUpMessage(). Issue #40793, patch by Iluha Companets.
(cherry picked from commit dcaf7e6bbe
)
This commit is contained in:
parent
43686ffed6
commit
f289407d16
@ -2274,7 +2274,7 @@ begin
|
||||
else if MessI.Result <> 0 then
|
||||
begin
|
||||
// issue #19914
|
||||
if GTK_IS_NOTEBOOK(Widget) then
|
||||
if GTK_IS_NOTEBOOK(PGTKObject(AWinControl.Handle)) then
|
||||
begin
|
||||
if g_object_get_data({%H-}PGObject(AWinControl.Handle),'lclnotebookdragging') <> nil then
|
||||
begin
|
||||
@ -2284,7 +2284,7 @@ begin
|
||||
end;
|
||||
// handled by the LCL
|
||||
//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;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user