* src/ViewManager.py (create_pages): fix off-by-one error when preselecting last view

svn: r8390
This commit is contained in:
Martin Hawlisch 2007-04-16 13:53:55 +00:00
parent 951d8c821b
commit a52da29fc8
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-04-16 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/ViewManager.py (create_pages): fix off-by-one error when
preselecting last view
2007-04-15 Don Allingham <don@gramps-project.org>
* po/gramps.pot: update for 2.2.7 preparation

View File

@ -780,7 +780,7 @@ class ViewManager:
use_current = Config.get(Config.USE_LAST_VIEW)
if use_current:
current_page = Config.get(Config.LAST_VIEW)
if current_page > len(self.pages):
if current_page >= len(self.pages):
current_page = 0
else:
current_page = 0