Gtk3: possible fix for gtk asserts. issue #41456

This commit is contained in:
zeljan1 2025-02-22 20:36:23 +01:00
parent 657ec3b852
commit ccd49bd9a3

View File

@ -4143,7 +4143,7 @@ begin
// TGtk3Window, so we must introduce new function for scrollables
// to return GtkScrollingWindow, like we have with getViewport.
ScrollWin := PGtkScrolledWindow(AControl.Widget);
if not Assigned(ScrollWin) then Exit;
if not Assigned(ScrollWin) or not Gtk3IsScrolledWindow(ScrollWin) then Exit;
IsScrollWindow := True;
end;