mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 17:52:47 +02:00
Gtk2: do not assert, check if we are GtkScrolledWindow inside TGtk2WidgetSet.InvalidateRect
git-svn-id: trunk@35883 -
This commit is contained in:
parent
47ff29d2a7
commit
9652b47265
@ -6522,7 +6522,7 @@ begin
|
||||
Inc(gdkRect.X, PaintWidget^.Allocation.x);
|
||||
Inc(gdkRect.Y, PaintWidget^.Allocation.y);
|
||||
end;
|
||||
if LCLObject is TScrollingWinControl then
|
||||
if (LCLObject is TScrollingWinControl) and GTK_IS_SCROLLED_WINDOW(Widget) then
|
||||
begin
|
||||
Pt := Point(0, 0);
|
||||
Adjustment := gtk_scrolled_window_get_vadjustment(PGtkScrolledWindow(Widget));
|
||||
|
Loading…
Reference in New Issue
Block a user