mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 12:55:56 +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.X, PaintWidget^.Allocation.x);
|
||||||
Inc(gdkRect.Y, PaintWidget^.Allocation.y);
|
Inc(gdkRect.Y, PaintWidget^.Allocation.y);
|
||||||
end;
|
end;
|
||||||
if LCLObject is TScrollingWinControl then
|
if (LCLObject is TScrollingWinControl) and GTK_IS_SCROLLED_WINDOW(Widget) then
|
||||||
begin
|
begin
|
||||||
Pt := Point(0, 0);
|
Pt := Point(0, 0);
|
||||||
Adjustment := gtk_scrolled_window_get_vadjustment(PGtkScrolledWindow(Widget));
|
Adjustment := gtk_scrolled_window_get_vadjustment(PGtkScrolledWindow(Widget));
|
||||||
|
Loading…
Reference in New Issue
Block a user