Typo fix on Direct Viewport links. DOM is cool and attribute names must match.

svn path=/trunk/kdegraphics/kpdf/; revision=377246
This commit is contained in:
Enrico Ros 2005-01-10 18:28:32 +00:00
parent 31d1b50511
commit d4fd6d62c3

View file

@ -119,10 +119,10 @@ void TOC::addChildren( const QDomNode & parentNode, KListViewItem * parentItem )
void TOC::slotExecuted( QListViewItem *i )
{
const QDomElement & e = static_cast< TOCItem* >( i )->element();
if ( e.hasAttribute( "PageViewport" ) )
if ( e.hasAttribute( "Viewport" ) )
{
// if the node has a viewport, set it
m_document->setViewport( DocumentViewport( e.attribute( "PageViewport" ) ), TOC_ID );
m_document->setViewport( DocumentViewport( e.attribute( "Viewport" ) ), TOC_ID );
}
else if ( e.hasAttribute( "ViewportName" ) )
{