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