Changeset 523:acdbd82114bb in documentViewer for zpt


Ignore:
Timestamp:
Apr 5, 2012, 12:50:00 PM (12 years ago)
Author:
root@…
Branch:
default
Message:

fixed bug with original page numbers at the end of thumbnail list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/toc_thumbs.zpt

    r516 r523  
    6262                                alt idx" /><br/>
    6363              <span title="Scan number" tal:content="idx"/>
    64               <span tal:condition="python:pageNumbers and pageNumbers[idx]['no']" title="Original page number" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])"/>
     64              <span tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']" title="Original page number" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])"/>
    6565            </a>
    6666          </td>
Note: See TracChangeset for help on using the changeset viewer.