LCL-GTK2: Prevent a crash in OpenBSD, related to tooltips. Issue #41244, patch by Alfred Glänzer.

This commit is contained in:
Juha 2024-11-16 10:19:37 +02:00
parent 1bcd352773
commit 3185572fdf

View File

@ -8132,13 +8132,11 @@ begin
else
If CompareText(WName,LazGtkStyleNames[lgsStatusBar])=0 then begin
lgs:=lgsStatusBar;
AddToStyleWindow:=true;
StyleObject^.Widget := gtk_statusbar_new;
end
else
If CompareText(WName,LazGtkStyleNames[lgsCalendar])=0 then begin
lgs:=lgsCalendar;
AddToStyleWindow:=true;
StyleObject^.Widget := gtk_calendar_new;
end
else
@ -8185,6 +8183,7 @@ begin
WidgetName := 'gtk-tooltip-lcl';
StyleObject^.Owner := Tp;
Tp := nil;
AddToStyleWindow:=false;
end
else
If CompareText(WName,LazGtkStyleNames[lgsHScale])=0 then begin