* src/ViewManager.py (create_pages): fix off-by-one error when preselecting last view
svn: r8390
This commit is contained in:
parent
951d8c821b
commit
a52da29fc8
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user