Gtk2: check if scrollbar handle is allocated when setting params.

git-svn-id: trunk@39220 -
This commit is contained in:
zeljko 2012-11-01 15:44:32 +00:00
parent 2999984266
commit da7550a5b0

View File

@ -2688,6 +2688,8 @@ class procedure TGtk2WSScrollBar.SetParams(const AScrollBar: TCustomScrollBar);
var
Range: PGtkRange;
begin
if not AWinControl.HandleAllocated then
exit;
with AScrollBar do
begin
Range := GTK_RANGE({%H-}Pointer(Handle));