mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 12:30:36 +02:00
IDE: Fix ActivePageIndex range check error in ComponentPalette. Issue #26887, patch from Sandro Cumerlato.
git-svn-id: trunk@46652 -
This commit is contained in:
parent
726983150d
commit
2bffa65585
@ -443,7 +443,7 @@ begin
|
||||
if (PageControl.ActivePageIndex > 0) then
|
||||
PageControl.ActivePageIndex := PageControl.ActivePageIndex - 1;
|
||||
end else begin
|
||||
if (PageControl.ActivePageIndex < PageControl.PageCount) then
|
||||
if (PageControl.ActivePageIndex < PageControl.PageCount-1) then
|
||||
PageControl.ActivePageIndex := PageControl.ActivePageIndex + 1;
|
||||
end;
|
||||
Handled := True;
|
||||
|
Loading…
Reference in New Issue
Block a user