Mercurial > hg > documentViewer
diff documentViewer.py @ 326:446cb6197547
*** empty log message ***
author | abukhman |
---|---|
date | Fri, 15 Oct 2010 16:23:03 +0200 |
parents | 80ae2324562b |
children | 1c4e63d22283 |
line wrap: on
line diff
--- a/documentViewer.py Fri Oct 15 16:09:39 2010 +0200 +++ b/documentViewer.py Fri Oct 15 16:23:03 2010 +0200 @@ -755,6 +755,7 @@ """returns pageinfo with the given parameters""" pageinfo = {} current = getInt(current) + pageinfo ['originalPage'] = originalPage pageinfo['current'] = current rows = int(rows or self.thumbrows) pageinfo['rows'] = rows @@ -787,6 +788,8 @@ toc = int (pageinfo['tocPN']) pageinfo['textPages'] =int (toc) + + if 'tocSize_%s'%tocMode in docinfo: tocSize = int(docinfo['tocSize_%s'%tocMode]) tocPageSize = int(pageinfo['tocPageSize'])