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

svn: r8391
This commit is contained in:
Martin Hawlisch 2007-04-16 13:57:03 +00:00
parent a8621d50ea
commit 03c01fa4f0
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-14 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py
* src/ReportBase/_ReportUtils.py

View File

@ -793,7 +793,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