gtk2: fixed crash with TSplitter with resizestyle = rsNone. issue #27559

git-svn-id: trunk@48041 -
This commit is contained in:
zeljko 2015-02-28 11:42:18 +00:00
parent a99c9eaabd
commit 429efee07e

View File

@ -1374,6 +1374,8 @@ end;
procedure TGtk2WidgetSet.SetRubberBandRect(const ARubberBand: HWND; const ARect: TRect);
begin
if ARubberBand = 0 then
exit;
with ARect do
gdk_window_move_resize({%H-}PGtkWidget(ARubberBand)^.window, Left,
Top, Right - Left, Bottom - Top);