mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 06:09:15 +02:00
Gtk2: check if scrollbar handle is allocated when setting params.
git-svn-id: trunk@39220 -
This commit is contained in:
parent
2999984266
commit
da7550a5b0
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user