Gtk2: do not assert, check if we are GtkScrolledWindow inside TGtk2WidgetSet.InvalidateRect

git-svn-id: trunk@35883 -
This commit is contained in:
zeljko 2012-03-11 13:27:56 +00:00
parent 47ff29d2a7
commit 9652b47265

View File

@ -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));