IDE: Fix ActivePageIndex range check error in ComponentPalette. Issue #26887, patch from Sandro Cumerlato.

git-svn-id: trunk@46652 -
This commit is contained in:
juha 2014-10-23 16:34:43 +00:00
parent 726983150d
commit 2bffa65585

View File

@ -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;