mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 12:00:18 +02:00
SynCompletion: Fixed exception on empty list
git-svn-id: trunk@28016 -
This commit is contained in:
parent
b344e702ad
commit
ff529fcb58
@ -758,7 +758,7 @@ begin
|
|||||||
Scroll.Enabled := ItemList.Count > NbLinesInWindow;
|
Scroll.Enabled := ItemList.Count > NbLinesInWindow;
|
||||||
Scroll.Visible := (ItemList.Count > NbLinesInWindow) or ShowSizeDrag;
|
Scroll.Visible := (ItemList.Count > NbLinesInWindow) or ShowSizeDrag;
|
||||||
|
|
||||||
if Scroll.Visible then
|
if Scroll.Visible and Scroll.Enabled then
|
||||||
begin
|
begin
|
||||||
Scroll.Max := ItemList.Count - 1;
|
Scroll.Max := ItemList.Count - 1;
|
||||||
Scroll.LargeChange := NbLinesInWindow;
|
Scroll.LargeChange := NbLinesInWindow;
|
||||||
@ -766,7 +766,7 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
Scroll.PageSize := 0;
|
Scroll.PageSize := 1;
|
||||||
Scroll.Max := 0;
|
Scroll.Max := 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user