FileApplicationNoteBook.st
changeset 3929 e373fe6a0b4d
parent 3919 c3cb2ca2f2c8
child 3948 ce1901787f51
--- a/FileApplicationNoteBook.st	Tue Oct 01 10:07:49 2002 +0200
+++ b/FileApplicationNoteBook.st	Tue Oct 01 10:08:26 2002 +0200
@@ -294,7 +294,7 @@
 
 closeSubCanvas:aApplication
 
-    | applIndex historyList localHistoryList|
+    | applIndex historyList localHistoryList selectedPage|
 
     applIndex := self getIndexFor:aApplication.
     applIndex notNil ifTrue:[
@@ -305,10 +305,12 @@
         historyList remove:applIndex ifAbsent:nil.
         localHistoryList := OrderedCollection new.
         historyList notEmpty ifTrue:[
-            self selectedEditorPage value:(historyList last).
+            selectedPage := historyList last.
         ] ifFalse:[
-            self selectedEditorPage value:1.
-        ].
+            selectedPage := 1.
+        ].  
+        self selectedEditorPage value:selectedPage.
+
         historyList do:[ : index |
             index <= applIndex ifTrue:[
                 localHistoryList add:index
@@ -4460,5 +4462,5 @@
 !FileApplicationNoteBook class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/FileApplicationNoteBook.st,v 1.3 2002-09-30 16:39:28 penk Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/FileApplicationNoteBook.st,v 1.4 2002-10-01 08:08:26 cg Exp $'
 ! !