summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/fpg_tab.pas1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/fpg_tab.pas b/src/gui/fpg_tab.pas
index f65e819c..ae12a177 100644
--- a/src/gui/fpg_tab.pas
+++ b/src/gui/fpg_tab.pas
@@ -610,6 +610,7 @@ end;
procedure TfpgPageControl.OrderSheets;
begin
FPages.Sort(@SortCompare);
+ FActivePageIndex := FPages.IndexOf(ActivePage);
end;
procedure TfpgPageControl.RePaintTitles;