summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-26 11:02:34 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-26 11:02:34 +0200
commitc914724da943aa154e1838a339b02746305667db (patch)
tree7546dc1b61833ad7693167b811044dedfc44c6db /src
parent5c3868bf81c0957db82def8c6df5e7efedfeca76 (diff)
downloadfpGUI-c914724da943aa154e1838a339b02746305667db.tar.xz
tabs: make sure internal ActivePageIndex is still correct.
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;