mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
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:
parent
31d1b50511
commit
d4fd6d62c3
1 changed files with 2 additions and 2 deletions
|
@ -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" ) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue