Commit d4fd6d62 authored by Enrico Ros's avatar Enrico Ros

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

svn path=/trunk/kdegraphics/kpdf/; revision=377246
parent 31d1b505
......@@ -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" ) )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment