mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-07 12:49:29 +01: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]));
|
Application.ReleaseComponent(TComponent(FTabs.Objects[AIndex]));
|
||||||
|
|
||||||
FTabs.Delete(aIndex);
|
FTabs.Delete(aIndex);
|
||||||
if FTabIndex >= FTabs.Count then SetTabIndex(FTabIndex-1);
|
if FTabIndex >= FTabs.Count then SetPageIndex(FTabIndex-1);
|
||||||
|
|
||||||
Invalidate;
|
Invalidate;
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user