customdrawn: Fixes setting the new page when deleting a tab

git-svn-id: trunk@33583 -
This commit is contained in:
sekelsenmat 2011-11-17 13:00:43 +00:00
parent 7874c0aac5
commit 7af5a3e038

View File

@ -2296,7 +2296,7 @@ begin
Application.ReleaseComponent(TComponent(FTabs.Objects[AIndex]));
FTabs.Delete(aIndex);
if FTabIndex >= FTabs.Count then SetTabIndex(FTabIndex-1);
if FTabIndex >= FTabs.Count then SetPageIndex(FTabIndex-1);
Invalidate;
end;