mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 11:10:23 +02:00
customdrawn: Fixes setting the new page when deleting a tab
git-svn-id: trunk@33583 -
This commit is contained in:
parent
7874c0aac5
commit
7af5a3e038
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user